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, isXopPackage
getFaultCode, getFaultReason, hasFault
getPayloadResult, getPayloadSource, writeTo
SoapEnvelope getEnvelope() throws SoapEnvelopeException
SoapEnvelope
associated with this SoapMessage
.SoapEnvelopeException
String 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()
.SoapBodyException
SoapEnvelope.getBody()
SoapHeader getSoapHeader() throws SoapHeaderException
SoapHeader
associated with this SoapMessage
. This is a convenience method
for getEnvelope().getHeader()
.SoapHeaderException
SoapEnvelope.getHeader()
SoapVersion getVersion()
SoapVersion.SOAP_11
,
SoapVersion.SOAP_12
Document getDocument()
Document
.
Depending on the underlying implementation, this Document may be 'live' or not.Copyright © 2020 Pivotal Software. All rights reserved.