SOAP

SOAP defines the format of a message exchange between the web service provider and the consumer:

Figure 9.5: SOAP message structure

The top element in a SOAP Message is SOAP Envelope. It contains a SOAP Header (Optional) and a SOAP Body. The SOAP Body actually contains the message payload (for processing by the consumer) and optionally SOAP Fault (Optional), if there is any error.

The SOAP header provides extensibility to the SOAP message. It can contain information such as user credentials, transaction management, and message routing.

Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.