WAS v8.5 > WebSphere applications > Web services > Web servicesSOAP
SOAP is a specification for the exchange of structured information in a decentralized, distributed environment. As such, it represents the main way of communication between the three key actors in a service oriented architecture (SOA): service provider, service requestor and service broker. The main goal of its design is to be simple and extensible. A SOAP message is used to request a web service.
SOAP 1.1
WebSphere Application Server follows the standards outlined in SOAP 1.1.
SOAP was submitted to the World Wide Web Consortium (W3C) as the basis of the XML Protocol Working Group by several companies, including IBM and Lotus . This protocol consists of three parts:
- An envelope that defines a framework for describing message content and processing instructions.
- A set of encoding rules for expressing instances of application-defined data types.
- A convention for representing remote procedure calls and responses.
SOAP 1.1 is a protocol-independent transport and can be used in combination with a variety of protocols. In web services developed and implemented with WAS, SOAP is used in combination with HTTP, HTTP extension framework, and JMS. SOAP is also operating-system independent and not tied to any programming language or component technology.
As long as the client can issue XML messages, it does not matter what technology is used to implement the client. Similarly, the service can be implemented in any language, as long as the service can process SOAP messages. Also, both server and client sides can reside on any suitable platform.
SOAP 1.2
The SOAP 1.2 specification is also a W3C recommendation, and WAS follows the standards that are outlined in SOAP 1.2. The SOAP 1.2 specification comes in three parts plus some assertions and a test collection:
- Part 0: Primer
- Part 1: Messaging Framework
- Part 2: Adjuncts
- Specification Assertions and Test Collection
SOAP 1.2 provides a more specific definition of the SOAP processing model, which removes many of the ambiguities that sometimes led to interoperability problems in the absence of the Web Services-Interoperability (WS-I) profiles. SOAP 1.2 should reduce the chances of interoperability issues with SOAP 1.2 implementations between different vendors.
Some of the more significant changes in the SOAP 1.2 specification include:
- The ability to now officially define other transport protocols other than the HTTP protocol as long as vendors conform to the binding framework defined in SOAP 1.2. While HTTP is ubiquitous, it is not as reliable of a transport as other things such as TCP/IP, MQ, and so forth.
- The fact that SOAP 1.2 is based on the XML Information Set (XML Infoset). The information set provides a way to describe the XML document using the XSD schema but does not necessarily serialize the document using XML 1.0 serialization. SOAP 1.1 is based upon XML 1.0 serialization. The information set will make it easier to use other serialization formats such as a binary protocol format. We can use a binary protocol format shrink the message into a much more compact format where some of the verbose tagging information might not be required.
The JAX-WS standard introduces the ability to support both SOAP 1.1 as well as SOAP 1.2.
See the differences is SOAP versions information for additional differences between SOAP 1.1 and SOAP 1.2.
Subtopics
- SOAP with Attachments API for Java interface
The SOAP with Attachments API for Java (SAAJ) interface is used for SOAP messaging that provides a standard way to send XML documents over the Internet from a Java programming model. SAAJ is used to manipulate the SOAP message to the appropriate context as it traverses through the runtime environment.- Differences in SAAJ versions
The SOAP with Attachments API for Java (SAAJ) interface v1.3 expands the support of SOAP 1.2 messages in a web services environment. There are several differences between SAAJ 1.2 and SAAJ 1.3 that are presented in this topic.- Message Transmission Optimization Mechanism
SOAP MTOM is a standard that is developed by the World Wide Web Consortium (W3C). MTOM describes a mechanism for optimizing the transmission or wire format of a SOAP message by selectively re-encoding portions of the message while still presenting an XML Information Set (Infoset) to the SOAP application.- Differences in SOAP versions
Both SOAP v1.1 and SOAP v1.2 are World Wide Web Consortium (W3C) standards. Web services can be deployed that support not only SOAP 1.1 but also support SOAP 1.2. Some changes from SOAP 1.1 that were made to the SOAP 1.2 specification are significant, while other changes are minor.
Reference:
Web services specifications and APIs
Related information:
SOAP v1.1 Note
SOAP v1.2