What are the elements of a SOAP message?

Technology CommunityCategory: SOAWhat are the elements of a SOAP message?
VietMX Staff asked 3 years ago

SOAP is just like other XML document and has following elements

  • Envelope: This element is defined as the mandatory root element. It translates the XML document and determines the start and end of the SOAP message.
  • Header: This element contains the optional header attributes of the message that contains specific information of the application. This element can occur multiple times and are intended to add new features and functionalities.
  • Body: This element is mandatory and contains the call and response messages. It is also defined as the child element of the envelope containing all the application derived XML data that has been exchanged as a part of SOAP message.
  • Fault element: Errors that occur during processing of the messages are handled by the fault element. If the error is present, then this element appears as a child element of the body. However, there can only be one fault block.