Consuming .Net web services / XML web services

batchfile

New Member
Licensed User
Longtime User
I've been trying to find a way to consume .net web services and parse them in a sane way, I decided to try making an http handler, to just simply send back serialized objects directly.

I've set it up so this url:
localhost/AnDyn/main.ashx

retruns:

<?xml version="1.0"?>
<ArrayOfListViewItem xmlns:xsd="www.w3.org/2001/XMLSchema" xmlns:xsi="www.w3.org/2001/XMLSchema-instance">
<ListViewItem>
<Label1>Google</Label1>
<Label2>Web</Label2>
<Value>www.google.com</Value>
</ListViewItem>
<ListViewItem>
<Label1>Google</Label1>
<Label2>Web</Label2>
<Value>www.google.com</Value>
</ListViewItem>
</ArrayOfListViewItem>

I've confirmed it returns this in a web browser no problem, however I always get connection refused when using the HttpClient. Changing the url to google.com works perfectly. I'm not sure what i'm doing wrong here. :BangHead:

All I was trying to do is find a simple easy way to download some xml from my xml web service, then dynamically create the listview items.
 
Top