1. Download the free trial version

Consuming .Net web services / XML web services

Discussion in 'Questions' started by batchfile, Jun 16, 2011.

  1. batchfile

    batchfile New Member Licensed 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.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    For some reason you appear as an unlicensed user in the forum. Please contact support@basic4ppc.com in order to fix it.
     
  3. kanaida

    kanaida Active Member Licensed User

Share This Page

Loading...