public interface SoapMessage extends MimeMessage, FaultAwareWebServiceMessage
getPayloadSource() and getPayloadResult() on
WebServiceMessage, the super-interface of this interface.WebServiceMessage.getPayloadSource(),
WebServiceMessage.getPayloadResult(),
getEnvelope()| Modifier and Type | Method and Description |
|---|---|
Document |
getDocument()
Returns this message as a
Document. |
SoapEnvelope |
getEnvelope()
Returns the
SoapEnvelope associated with this SoapMessage. |
String |
getSoapAction()
Get the SOAP Action for this message, or
null if not present. |
SoapBody |
getSoapBody()
Returns the
SoapBody associated with this SoapMessage. |
SoapHeader |
getSoapHeader()
Returns the
SoapHeader associated with this SoapMessage. |
SoapVersion |
getVersion()
Returns the SOAP version of this message.
|
void |
setDocument(Document document)
Sets the contents of the message to the given
Document. |
void |
setSoapAction(String soapAction)
Sets the SOAP Action for this message.
|
addAttachment, addAttachment, addAttachment, convertToXopPackage, getAttachment, getAttachments, isXopPackagegetFaultCode, getFaultReason, hasFaultgetPayloadResult, getPayloadSource, writeToSoapEnvelope getEnvelope() throws SoapEnvelopeException
SoapEnvelope associated with this SoapMessage.SoapEnvelopeExceptionString getSoapAction()
null if not present.void setSoapAction(String soapAction)
soapAction - the SOAP Action.SoapBody getSoapBody() throws SoapBodyException
SoapBody associated with this SoapMessage. This is a convenience method for
getEnvelope().getBody().SoapBodyExceptionSoapEnvelope.getBody()SoapHeader getSoapHeader() throws SoapHeaderException
SoapHeader associated with this SoapMessage. This is a convenience method
for getEnvelope().getHeader().SoapHeaderExceptionSoapEnvelope.getHeader()SoapVersion getVersion()
SoapVersion.SOAP_11,
SoapVersion.SOAP_12Document getDocument()
Document.
Depending on the underlying implementation, this Document may be 'live' or not.