Solved

Process SOAP response in .Net

Posted on 2007-12-05
7
419 Views
Last Modified: 2013-11-07
I am calling a WebService from my .Net application (aspx page) and I am getting a SOAP response. Does .Net provide any API for processing a SOAP response or do I need to create a DOM object to do so.
0
Comment
Question by:thomas908
[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
  • 3
7 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20417352
there are lots of soap/xml samples at codeproject.com:
http://www.codeproject.com/KB/XML/
0
 
LVL 8

Author Comment

by:thomas908
ID: 20417449
Can you please give me an example on how to read a SOAP response?
0
 
LVL 8

Author Comment

by:thomas908
ID: 20417451
Do I need to take the response into a String and then make a DOM object from it.
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 8

Author Comment

by:thomas908
ID: 20417539
If I take it into a String then I get \n at several places. Please tell me how to resolve this problem.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20417574
Hi again, I am sure about your question. A soap response is returned as an xml document with a SOAP envelope, like described here:
http://msdn2.microsoft.com/en-us/library/ms189558.aspx
Now, if you want to parse a message by yourself, you can do it as a regular XML doc, there are several techniques for this: XmlReader, XmlSerializer, XmlDocument, etc.
So, do you have an specific message format, do you have yet the message stored somewhere?
0
 
LVL 8

Author Comment

by:thomas908
ID: 20417629


I am calling three web services and these three webservices are giving the soap response.

Now the thing is i want to store these 3 XML files in dataset (but I don't want to store it in the hard drive) and will transform these three soap responses into required XML formats using XSLTransformation.
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 300 total points
ID: 20417657
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

707 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