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
Solved

Process SOAP response in .Net

Posted on 2007-12-05
7
394 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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Query Help Top 1 and Distinct? 6 35
VS 2017 18 30
Change to file doesn't show up 16 50
C# class library debugging - Breakpoint will not hit. 8 16
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…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 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