✏️ Explanatory Question

What does the SOAP header contain?

👁 67 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

The SOAP header contains application-related metadata, such as:

  • Message ID
  • SOAP action
  • Authentication details (if needed)

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.