Solved

Parsing xmlHTTP response from server in VB.NET

Posted on 2004-09-17
4
840 Views
Last Modified: 2007-12-19
Hi all,

I am using a VB.NET client to communicate with an ASP.NET web service. I am able to send an XML request via xmlHTTP and get a response back which I can display using xmlHTTP.responseXML.xml.

Whats the best way to parse this response from the server. I am trying to use xmlTextReader but it requires an xml file or a stream or a URL. What I have is xmlHTTP.responseXML. How can I use xmlTextReader function to parse xml from the responseXML. Or what are the alternatives available.

Dim reader As XmlTextReader = New XmlTextReader(xmlHTTP.responseXML.xml)

gave the following error

 Overload resolution failed because no accessible 'New' can be called without a narrowing conversion:
    'Public Sub New(url As String)': Argument matching parameter 'url' narrows from 'System.Object' to 'String'.
    'Public Sub New(input As System.IO.TextReader)': Argument matching parameter 'input' narrows from 'System.Object' to 'System.IO.TextReader'.
    'Public Sub New(input As System.IO.Stream)': Argument matching parameter 'input' narrows from 'System.Object' to 'System.IO.Stream'.

Regards,
Cannibal Corpse
0
Comment
Question by:Cannibal_Corpse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 12091158
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question