Package org.springframework.ws.soap
Class AbstractSoapMessage
java.lang.Object
org.springframework.ws.mime.AbstractMimeMessage
org.springframework.ws.soap.AbstractSoapMessage
- All Implemented Interfaces:
FaultAwareWebServiceMessage,MimeMessage,SoapMessage,WebServiceMessage
- Direct Known Subclasses:
SaajSoapMessage
Abstract implementation of the
SoapMessage interface. Contains convenient default implementations.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal QNameReturnsgetSoapBody().getFault().getFaultCode().final StringReturnsgetSoapBody().getFault().getFaultStringOrReason().final ResultReturnsgetSoapBody().getPayloadResult().final SourceReturnsgetSoapBody().getPayloadSource().final SoapBodyReturnsgetEnvelope().getBody().final SoapHeaderReturnsgetEnvelope().getHeader().Returns the SOAP version of this message.final booleanhasFault()ReturnsgetSoapBody().hasFault().Methods inherited from class org.springframework.ws.mime.AbstractMimeMessage
addAttachment, addAttachmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ws.mime.MimeMessage
addAttachment, addAttachment, addAttachment, convertToXopPackage, getAttachment, getAttachments, isXopPackageMethods inherited from interface org.springframework.ws.soap.SoapMessage
getDocument, getEnvelope, getSoapAction, setDocument, setSoapActionMethods inherited from interface org.springframework.ws.WebServiceMessage
writeTo
-
Constructor Details
-
AbstractSoapMessage
public AbstractSoapMessage()
-
-
Method Details
-
getSoapBody
ReturnsgetEnvelope().getBody().- Specified by:
getSoapBodyin interfaceSoapMessage- See Also:
-
getSoapHeader
ReturnsgetEnvelope().getHeader().- Specified by:
getSoapHeaderin interfaceSoapMessage- See Also:
-
getPayloadSource
ReturnsgetSoapBody().getPayloadSource().- Specified by:
getPayloadSourcein interfaceWebServiceMessage- Returns:
- the message contents
-
getPayloadResult
ReturnsgetSoapBody().getPayloadResult().- Specified by:
getPayloadResultin interfaceWebServiceMessage- Returns:
- the message contents
-
hasFault
public final boolean hasFault()ReturnsgetSoapBody().hasFault().- Specified by:
hasFaultin interfaceFaultAwareWebServiceMessage- Returns:
trueif the message has a fault.- See Also:
-
getFaultCode
ReturnsgetSoapBody().getFault().getFaultCode().- Specified by:
getFaultCodein interfaceFaultAwareWebServiceMessage
-
getFaultReason
ReturnsgetSoapBody().getFault().getFaultStringOrReason().- Specified by:
getFaultReasonin interfaceFaultAwareWebServiceMessage- Returns:
- the fault reason message, if any; returns
nullwhen no fault is present. - See Also:
-
getVersion
Description copied from interface:SoapMessageReturns the SOAP version of this message. This can be either SOAP 1.1 or SOAP 1.2.- Specified by:
getVersionin interfaceSoapMessage- Returns:
- the SOAP version
- See Also:
-