Solved

Process SOAP response in .Net

Posted on 2007-12-05
7
377 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
  • 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now