Using SOAPMessage objects
Provider implementations can use javax.xml.soap.SOAPMessage objects when the following conditions are true:
-
the Provider implementation is using the SOAP binding.
-
the Provider implementation is using message mode.
A SOAPMessage object, as the name implies, holds a SOAP message. They contain one SOAPPart object and zero or more AttachmentPart objects. The SOAPPart object contains the SOAP specific portions of the SOAP message including the SOAP envelope, any SOAP headers, and the SOAP message body. The AttachmentPart objects contain binary data that was passed as an attachment.