Solved

Process SOAP response in .Net

Posted on 2007-12-05
7
405 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

730 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