| |||||||||
Soap. For other uses of the acronym SOAP, see Soap (disambiguation).
SOAP (formerly an acronym of Simple Object Access Protocol) is a light-weight protocol for exchanging messages between computer software, typically in the form of software componentry. The word object implies that the use should adhere to the object-oriented programming paradigm.
SOAP is an extensible and decentralized framework that can work over multiple computer network protocol stacks. Remote procedure calls can be modeled as an interaction of several SOAP messages. SOAP is one of the enabling protocols for Web services.
SOAP can be run on top of all the Internet Protocols, but HTTP is the most common and the only one standardized by the W3C. SOAP is based on XML, and its design follows the Head-Body software pattern, not unlike HTML. The optional Header contains meta-information such as information for routing, security, and transactions. The Body transports the main information, sometimes known as the payload. The payload is compliant with an XML Schema.
By way of example, here is how a client might format a SOAP message requesting product information from a fictional warehouse web service:
Here is how the warehouse web service might format its reply message with the requested product information: