PDA

View Full Version : Consuming webservice - newbie


jevans
04-23-2004, 03:09 AM
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

bruce
04-23-2004, 11:11 AM
why not configure the xml web service to return a xmlnode or xmldoc?



[b]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">

jevans
04-27-2004, 02:43 AM
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