Consuming webservice - newbie

Discussion in 'ASP.NET WebServices' started by jevans, Apr 23, 2004.

  1. I am consuming a webservice in my application. The data is being passed back as one large string. The string contains well formed xml. I know there is a way to easily parse this in asp.net using the xml classes - I just can't seem to find it. I even created a proxy using wsdl.exe (this is how I discovered that it was being passed as a large string). Any help appreciated.

    J. Evans
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    why not configure the xml web service to return a xmlnode or xmldoc?



    quote:Originally posted by jevans

    I am consuming a webservice in my application. The data is being passed back as one large string. The string contains well formed xml. I know there is a way to easily parse this in asp.net using the xml classes - I just can't seem to find it. I even created a proxy using wsdl.exe (this is how I discovered that it was being passed as a large string). Any help appreciated.

    J. Evans
    </blockquote id="quote"></font id="quote">
     
  3. Bruce -

    Well - I am not authoring the webservice - just consuming it - so I have no control over that but it would be a good idea if I did [:)]

    I did come up with a resolution though. I enstanciated an XmlDocument and then loaded the document with the string:

    Dim xDoc and New XmlDocument
    xDoc.Load(strData)

    Then I used XPath to loop through the nodes pulling out the data - worked great.

    Thanks

    J. Evans
     

Share This Page