C90-02 practice question 14 of 15

The required parts of a SOAP message are the envelope document and the header and body sections.

Full set: 89 questions
Answer options
A: True
B: False
Correct Answer:
[FALSE]
Explanation

A SOAP message is fundamentally composed of an Envelope element, which is the root of the XML document. This Envelope must contain exactly one Body element. The Header element, however, is optional. A valid SOAP message can be constructed without a Header. Therefore, the only universally required parts are the Envelope and the Body.

Why Incorrect

The statement is "True" is incorrect because it erroneously includes the Header section as a required part of a SOAP message. The official SOAP specification explicitly defines the Header as an optional element. It is used to pass metadata, processing instructions, or contextual information (like security credentials or transaction IDs) that is separate from the primary message payload contained within the Body.

References

1. W3C - SOAP Version 1.2 Part 1: Messaging Framework (Second Edition). This is the definitive specification for the SOAP protocol.

Section 5.2, SOAP Header: "The Header element is an optional child of the Envelope element, and provides a mechanism for adding information to a SOAP message in a decentralized and modular way."

Section 5.3, SOAP Body: "The Body element is a mandatory child of the Envelope element, which MUST be present in a SOAP message. It contains information intended for the ultimate recipient of the message."

2. Arcitura Education Inc., SOA: Principles of Service Design, (The Prentice Hall Service-Oriented Computing Series from Thomas Erl), 2008.

Chapter 10, Section: "Basic SOAP Message Structure": This section describes the anatomy of a SOAP message, stating, "The Envelope element is the root element in a SOAP message. It contains two child elements, an optional Header element and a mandatory Body element." (Paraphrased from standard textbook content on SOAP structure).

3. IBM Developer, "The SOAP specification".

Section: "The SOAP message": "A SOAP message is an ordinary XML document containing the following elements: A required Envelope element that identifies the XML document as a SOAP message. An optional Header element that contains header information. A required Body element that contains call and response information."

Scroll to Top