Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 20, 2013 01:29 AM by Decker Dong - MSFT
Jan 18, 2013 08:47 PM|LINK
Im a little new in using XML in this fashion so a few newbie questions.
I am trying to use a web service. I type into a web browser an URL similar to http://website/service/?query=Name:test. This displays a page in XML of all the names that have test.
Usually when consuming a web service i would see a response returned (if using WCF services), Although this seems like the response returned (the data on the page), what should i be using in order to:
1. See the request sent and received (used Fiddler and although i saw the URL there was nothing returned - unless im missing something).
2. The .Net classes to use in order to do this in an ASP .Net web application. I would need to display the info onto the page etc.
Any examples or links to show a brief demo would help.
Jan 20, 2013 01:29 AM|LINK
1) You should use XDocument's Parse method to load your fetched data contents in a correct formation of xml.
2) Then use LINQ-TO-XML to analyze what you want.
3) A simple sample:
var result = XDocument.Parse("<Root><S>aa</S></Root>");
var c = result.Root.Element("S").Value;