We already know that a SOAP message is an XML document, but let's have a better look by way of a diagram:
The following is a description of the components from the preceding diagram:
- Envelope: Mandatory element of SOAP message structure. Defines the start and the end of the message.
- Header: Optional element of the SOAP message. It contains information regarding the SOAP message that can be used to process the data.
- Body: This is the main part, which contains the actual message in XML structure. Obviously, it is a mandatory element.
- Fault: If any errors occur while processing the SOAP message, an optional Fault element can be ...