How many number of parts are there in a SOAP document ?
-
3
-
4
-
5
-
6
A SOAP message has exactly four XML parts: 1) Envelope (root element), 2) Header (optional, contains metadata), 3) Body (actual message content), and 4) Fault (optional, error information). This four-part structure is defined by the SOAP specification.
Correct answer: 4. A SOAP message document is commonly described as having four parts: the Envelope (the root element), the optional Header (metadata like auth/routing), the mandatory Body (the actual payload), and the optional Fault (error information, nested inside the Body). This 'Envelope/Header/Body/Fault' four-part breakdown is the standard way SOAP structure is taught, though some sources simplify it to 3 by treating Fault as part of Body rather than a separate part.