Solved

Process SOAP response in .Net

Posted on 2007-12-05
7
363 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

12 Experts available now in Live!

Get 1:1 Help Now