|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SoapMessage
Represents an abstraction for SOAP messages, providing access to a SOAP Envelope. The contents of the SOAP body can
be retrieved by getPayloadSource()
and getPayloadResult()
on
WebServiceMessage
, the super-interface of this interface.
WebServiceMessage.getPayloadSource()
,
WebServiceMessage.getPayloadResult()
,
getEnvelope()
Method Summary | |
---|---|
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. |
Methods inherited from interface org.springframework.ws.mime.MimeMessage |
---|
addAttachment, addAttachment, addAttachment, convertToXopPackage, getAttachment, getAttachments, isXopPackage |
Methods inherited from interface org.springframework.ws.FaultAwareWebServiceMessage |
---|
getFaultReason, hasFault |
Methods inherited from interface org.springframework.ws.WebServiceMessage |
---|
getPayloadResult, getPayloadSource, writeTo |
Method Detail |
---|
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.
void setDocument(Document document)
Document
.
document
- the soap message as a DOM document
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |