All Topics  
SOAP

 

   Email Print
   Bookmark   Link

 

SOAP


 
 
SOAP (see belowSOAP Overview

SOAP is a protocol for exchanging XML-based messages over a computer network, normally using []....
 for name and origins) is a protocolProtocol (computing)

In computing, a protocol is a convention or standard that controls or enables the connection, communication, and data transf...
 for exchanging XML-based messages over computer networkComputer network

A computer network is a group of interconnected computers....
s, normally using HTTPHypertext Transfer Protocol

Hypertext Transfer Protocol is a method used to transfer or convey information on the World Wide Web....
/HTTPSHttps

https is a URI scheme which is syntactically identical to the http: scheme normally used for accessing resources using HTTP....
. SOAP forms the foundation layer of the web services protocol stackWeb Services Protocol Stack

The Web service protocol stack is the collection of computer networking protocols that are used to define, locate, implement...
 providing a basic messaging framework upon which abstract layers can be built.

As a layman's example of how SOAP procedures can be used, a correctly formatted call could be sent to a Web Service enabled web site - for example, a house price database - with the data ranges needed for a search. The site could then return a formatted XML document with all the required results and associated data (prices, location, features, etc). These could then be integrated directly into a third-party site.

There are several different types of messaging patterns in SOAP, but by far the most common is the Remote Procedure CallRemote procedure call

Remote procedure call is a protocol that allows a computer program running on one computer to cause a subroutine on another...
 (RPC) pattern, in which one network node (the client) sends a request message to another node (the server) and the server immediately sends a response message to the client.






Discussion
Ask a question about 'SOAP'
Start a new discussion about 'SOAP'
Answer questions from other users
Full Discussion Forum






Timeline

50   Romans learn the use of soap from the Gauls.

160   In Rome, the manufacturing of soap containing grease, lime and ashes begins.






Encyclopedia


SOAP (see belowSOAP Overview

SOAP is a protocol for exchanging XML-based messages over a computer network, normally using []....
 for name and origins) is a protocolProtocol (computing)

In computing, a protocol is a convention or standard that controls or enables the connection, communication, and data transf...
 for exchanging XML-based messages over computer networkComputer network

A computer network is a group of interconnected computers....
s, normally using HTTPHypertext Transfer Protocol

Hypertext Transfer Protocol is a method used to transfer or convey information on the World Wide Web....
/HTTPSHttps

https is a URI scheme which is syntactically identical to the http: scheme normally used for accessing resources using HTTP....
. SOAP forms the foundation layer of the web services protocol stackWeb Services Protocol Stack

The Web service protocol stack is the collection of computer networking protocols that are used to define, locate, implement...
 providing a basic messaging framework upon which abstract layers can be built.

As a layman's example of how SOAP procedures can be used, a correctly formatted call could be sent to a Web Service enabled web site - for example, a house price database - with the data ranges needed for a search. The site could then return a formatted XML document with all the required results and associated data (prices, location, features, etc). These could then be integrated directly into a third-party site.

There are several different types of messaging patterns in SOAP, but by far the most common is the Remote Procedure CallRemote procedure call

Remote procedure call is a protocol that allows a computer program running on one computer to cause a subroutine on another...
 (RPC) pattern, in which one network node (the client) sends a request message to another node (the server) and the server immediately sends a response message to the client. SOAP is the successor of XML-RPCXML-RPC

XML-RPC is a remote procedure call protocol which uses XML to encode its calls and [] as a transport mechanism....
, though it borrows its transport and interaction neutrality and the envelope/header/body from elsewhere, probably from WDDXWDDX

WDDX is a programming-language, platform and transport-neutral data interchange mechanism to pass data between different env...
.

History

SOAP once stood for 'Simple Object Access Protocol' but this acronym was dropped with Version 1.2 of the standard, as it was considered to be misleading. Version 1.2 became a W3C Recommendation on June 24 2003. The acronym is sometimes confused with SOAService-oriented architecture Summary

In computing, the term Service-Oriented Architecture expresses a perspective of software architecture that defines the use o...
, or Service-oriented architecture; however SOAP is quite different from SOA.

SOAP was originally designed by Dave WinerDave Winer

Dave Winer is a software developer who created or was a lead contributor to several of the most popular XML dialects and AP...
, Don BoxDon Box

Don Box is a technical author and one of the original four designers of SOAP, a basic messaging layer for web services....
, Bob Atkinson, and Mohsen Al-Ghosein in 1998, with backing from MicrosoftMicrosoft Summary

company_name = Microsoft Corporation| company_logo = ...
 (where Atkinson and Al-Ghosein worked at the time), as an object-access protocol. The is currently maintained by the of the World Wide Web ConsortiumWorld Wide Web Consortium

The World Wide Web Consortium is an international consortium where , a full-time staff and the public work together to deve...
.

Transport methods

SOAP makes use of an Internet application layer protocol as a transport protocol. Critics have argued that this is an abuse of such protocols, as it is not their intended purpose and therefore not a role they fulfill well. Backers of SOAP have drawn analogies to successful uses of protocols at various levels for tunnelingFacts About Tunneling protocol

A tunneling protocol is a network protocol which encapsulates one protocol or session inside another....
 other protocols.

Both SMTP and HTTP are valid application layer protocols used as Transport for SOAP, but HTTP has gained wider acceptance as it works well with today's Internet infrastructure; specifically, HTTP works well with network firewallsFirewall (networking) Summary

In computer science, a firewall is a piece of hardware and/or software which functions in a networked environment to prevent...
. SOAP may also be used over HTTPSHttps Overview

https is a URI scheme which is syntactically identical to the http: scheme normally used for accessing resources using HTTP....
 (which is the same protocol as HTTP at the application level, but uses an encrypted transport protocol underneath) in either simple or mutual authentication; this is the advocated WS-I method to provide web service security as stated in the WS-I Basic ProfileWS-I Basic Profile

The WS-I Basic Profile, a specification from the Web Services Interoperability industry consortium, provides interoperabilit...
 1.1.This is a major advantage over other distributed protocols like GIOP/IIOP or DCOMDistributed component object model

Distributed Component Object Model is a Microsoft proprietary technology for software components distributed across several ...
 which are normally filtered by firewalls. XML was chosen as the standard message format because of its widespread use by major corporations and open sourceOpen source

Open source describes practices in production and development that promote access to the end product's sources....
 development efforts. Additionally, a wide variety of freely available tools significantly eases the transition to a SOAP-based implementation..

The somewhat lengthy syntaxSyntax

In linguistics, Syntax, originating from the Greek words s?? and t???? , is the study of the rules, or "patterned relations...
 of XML can be both a benefit and a drawback. While it promotes readability for humans, it can retard processing speed and be cumbersome. For example, CORBAÇorba

?orba is a Turkish soup or stew. The word entered into a number of national cuisines of various peoples under the rule of t...
, GIOP, ICEInternet Communications Engine

The Internet Communications Engine, or Ice, is a Remote Procedure Call and object middleware system developed by ZeroC...
, and DCOMDistributed component object model

Distributed Component Object Model is a Microsoft proprietary technology for software components distributed across several ...
 use much shorter, binary message formats. On the other hand, hardware appliances are available to accelerate processing of XML messages. Binary XMLBinary XML

Binary XML, or Binary Extensible Markup Language, refers to any specification which attempts to encode an XML document...
 is also being explored as a means for streamlining the throughput requirements of XML.

Technical critique

Numerous commentators and specialists have discussed the technical advantages and disadvantages of SOAP relative to alternative technologies, and relative to the context of its intended use.

Advantages

  • Using SOAP over HTTP allows for easier communication through proxiesProxy server

    A proxy server is a computer that offers a computer network service to allow clients to make indirect network connections to...
     and firewallsFirewall

    Firewall may refer to:* Firewall, a physical barrier inside a building or vehicle, designed to limit the spread of fire...
     than previous remote execution technology.
  • SOAP is versatile enough to allow for the use of different transport protocols. The standard stacks use HTTP as a transport protocol, but other protocols are also usable (e.g. SMTP).
  • SOAP is platform independent.
  • SOAP is language independent.
  • SOAP is simple and extensible.

Disadvantages

  • Because of the verbose XML format, SOAP can be considerably slower than competing middlewareMiddleware

    Middleware is computer software that connects software components or applications....
     technologies such as CORBAÇorba

    ?orba is a Turkish soup or stew. The word entered into a number of national cuisines of various peoples under the rule of t...
    . This may not be an issue when only small messages are sent. To improve performance for the special case of XML with embedded binary objects, Message Transmission Optimization MechanismMTOM

    MTOM is the W3C Message Transmission Optimization Mechanism,...
     was introduced. Further, to improve the performance of XML in general, there are emerging non-extractive XML processing models, e.g., VTD-XMLVTD-XML

    Virtual Token Descriptor for eXtensible Markup Language refers to a collection of efficient XML processing technologies cen...
    .
  • When relying on HTTP as a transport protocol and not using WS-AddressingFacts About WS-Addressing

    WS-Addressing is a specification of a mechanism to allow web services to communicate addressing information....
     or an ESBFacts About Enterprise service bus

    In computing, an enterprise service bus refers to a software architecture construct, implemented by technologies found in a ...
    , the roles of the interacting parties are fixed. Only one party (the client) can use the services of the other. Developers must use pollingPolling (computer science)

    In computer science the term Polling refers to actively sampling the status of an external device by a client program as a s...
     instead of notification in these common cases.
  • Most uses of HTTP as a transport protocol are done in ignorance of how the operation would be modelled in HTTP. This is by design (with analogy to how different protocols sit on top of each other in the IP stack) but the analogy is imperfect (because the application protocols used as transport protocols are not really transport protocols). Because of this, there is no way to know if the method used is appropriate to the operation. This makes good analysis of the operation at the application-protocol level problematic at best with results that are sub-optimal (if the POST-based binding is used for an application which in HTTP would be more naturally modelled as a GET operation).
  • Tunnelling over an inappropriate transport such as HTTP is disingenuous and counter-productive. A firewall attempts to enforce security policy. If the policy states that HTML (over HTTP) is OK but unknown protocols are not, then layering a remote procedure call mechanism through this is not secure and against the security policy. The choices are to use a new, well-known port and request it be opened for SOAP and other remote-invocation mechanisms, or the firewall is forced to get tougher about the packet inspection.

Additional information

  • SOAP with AttachmentsSOAP with Attachments

    SOAP with Attachments or MIME for Web Services refers to the method of using Web Services to send and receive files us...
  • SOAP with Attachments API for Java
  • Web Services Description Language (WSDL)Web Services Description Language

    The Web Services Description Language is an XML format published for describing Web services....


External links