Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

What is Soap? What are its Advantages?

Author: DevASP

In this article you will learn that what is SOAP and what are its advantages in Development.

SOAP (Simple Object Access Protocol)

 

SOAP is a standard for exchanging XML-based messages over a computer network, normally using HTTP.

Purpose of using SOAP:

For many Web services, you need only a combination of XML, HTTP, and an application-specific message protocol. To be sure, SOAP has its uses. But, in my opinion, SOAP’s role is overstated in the early stages of a Web service’s development. Using SOAP for the wrong tasks can easily hijack a Web service development project, because SOAP introduces a large set of problems that are orthogonal to the challenges of building a Web service. SOAP-related issues tend to consume the majority of the development effort.

 

The most common purpose of Web services today is to exchange XML data. For instance, more than 200 Web services listed on XMethods share that purpose. The classic examples of a stock quote service, weather service, or postal code lookup service are all about sending an XML query message, and receiving an XML reply. That pattern dominates more complex Web services as well: the UDDI registry service or the Liberty Alliance single sign-on and identity federation Web services are all defined in terms of XML-based query-response message exchanges.

 

At best, SOAP introduces a level of indirection to such XML message exchanges by embedding an XML message in a SOAP envelope. Since the SOAP envelope can carry metadata about the original XML message, such as processing instructions, the envelope can aid a Web service in processing that message. At worst, SOAP makes it difficult, if not impossible, to verify the validity of an XML message traversing between two Web services.

Example:

Here is an example of how a client might format a SOAP message requesting product information from a fictional warehouse web service. The client needs to know which product corresponds with the ID DEVASP123:

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

   <soap:Body>

     <getProductDetails xmlns="http://warehouse.example.com/ws">

       <productID> DEVASP123</productID>

     </getProductDetails>

   </soap:Body>

 </soap:Envelope> 

 

Here is how the warehouse web service might format its reply message with the requested product information:

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

   <soap:Body>

     <getProductDetailsResponse xmlns="http://warehouse.example.com/ws">

       <getProductDetailsResult>

         <productName>Toptimate 3-Piece Set</productName>

         <productID> DEVASP123</productID>

         <description>3-Piece luggage set. Black Polyester.</description>

         <price>96.50</price>

         <inStock>true</inStock>

       </getProductDetailsResult>

     </getProductDetailsResponse>

   </soap:Body>

 </soap:Envelope>

 

Article Comments
it is good for the students

Posted on 12/10/2006 12:07:04 PM by ch abbas

This site reeally helped with with my research for my final project

Posted on 3/1/2007 7:09:59 PM by Student

This is Short and simple and very gud for a beginer

Posted on 5/28/2007 2:30:33 AM by Geethika

please give me some hints to write a articl

Posted on 7/28/2007 2:03:06 AM by harsha

Awesome artikel mann, i luv this thing its soo koool and rad. Job

Posted on 11/27/2007 2:57:16 PM by Soap_Fan

This is very nice. But one more Question what is difference between HTTP and SOAP?
pls send reply to me

Posted on 12/6/2007 2:14:26 AM by varathan

the disadvatages are not clear here

Posted on 1/5/2008 1:20:33 AM by sharan

ts a good article, but can you explain the advantages of using SOAP? What are the differences between SOAP and HTTP?

Posted on 2/20/2008 7:52:33 PM by Sijee

4 me soap is very helpful

Posted on 8/4/2009 7:03:24 AM by jay ho

please send me some information on advantages and disadvantages of soaps

Posted on 11/11/2009 3:52:36 AM by arti

Hi Arti,

You can find Material regarding Soap on following link

http://www.devasp.net/net/Search/Search.asp?st=advantages+of+soap&Submit1=Go!

Posted on 11/11/2009 3:55:23 AM by zunnair

I am doing research for my college thesis, thanks for your excellent points, now I am acting on a sudden impulse.

- Kris

Posted on 10/28/2010 5:33:01 AM by autoversicherung

send me full detail of micelles, cleaning action of soap and advantages and disadvantages of soap and detergent.
thanks.

Posted on 11/30/2010 3:58:30 AM by danish

   
Add Article Comment:
Name :
Email Address :
   
Comments :
 
   


Disclaimer - Privacy
© 2002-2017 DevASP.net