Home / Questions / What does the SOAP body contain?
Explanatory Question

What does the SOAP body contain?

👁 82 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

The SOAP body contains the actual message intended for the recipient, formatted in XML.

The following diagram shows the structure of a SOAP message:

Figure: Structure of a SOAP message

A SOAP message always starts with an envelope that contains the mandatory SOAP header block and SOAP body block. The SOAP header contains the application-related information, such as message ID and soap action. The SOAP body block contains the actual message intended for the recipient.