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
-
Method Summary
Modifier and TypeMethodDescriptionfinal QName
ReturnsgetSoapBody().getFault().getFaultCode()
.final String
ReturnsgetSoapBody().getFault().getFaultStringOrReason()
.final Result
ReturnsgetSoapBody().getPayloadResult()
.final Source
ReturnsgetSoapBody().getPayloadSource()
.final SoapBody
ReturnsgetEnvelope().getBody()
.final SoapHeader
ReturnsgetEnvelope().getHeader()
.Returns the SOAP version of this message.final boolean
hasFault()
ReturnsgetSoapBody().hasFault()
.Methods inherited from class org.springframework.ws.mime.AbstractMimeMessage
addAttachment, addAttachment
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ws.mime.MimeMessage
addAttachment, addAttachment, addAttachment, convertToXopPackage, getAttachment, getAttachments, isXopPackage
Methods inherited from interface org.springframework.ws.soap.SoapMessage
getDocument, getEnvelope, getSoapAction, setDocument, setSoapAction
Methods inherited from interface org.springframework.ws.WebServiceMessage
writeTo
-
Constructor Details
-
AbstractSoapMessage
public AbstractSoapMessage()
-
-
Method Details
-
getSoapBody
ReturnsgetEnvelope().getBody()
.- Specified by:
getSoapBody
in interfaceSoapMessage
- See Also:
-
getSoapHeader
ReturnsgetEnvelope().getHeader()
.- Specified by:
getSoapHeader
in interfaceSoapMessage
- See Also:
-
getPayloadSource
ReturnsgetSoapBody().getPayloadSource()
.- Specified by:
getPayloadSource
in interfaceWebServiceMessage
- Returns:
- the message contents
-
getPayloadResult
ReturnsgetSoapBody().getPayloadResult()
.- Specified by:
getPayloadResult
in interfaceWebServiceMessage
- Returns:
- the message contents
-
hasFault
public final boolean hasFault()ReturnsgetSoapBody().hasFault()
.- Specified by:
hasFault
in interfaceFaultAwareWebServiceMessage
- Returns:
true
if the message has a fault.- See Also:
-
getFaultCode
ReturnsgetSoapBody().getFault().getFaultCode()
.- Specified by:
getFaultCode
in interfaceFaultAwareWebServiceMessage
-
getFaultReason
ReturnsgetSoapBody().getFault().getFaultStringOrReason()
.- Specified by:
getFaultReason
in interfaceFaultAwareWebServiceMessage
- Returns:
- the fault reason message, if any; returns
null
when no fault is present. - See Also:
-
getVersion
Description copied from interface:SoapMessage
Returns the SOAP version of this message. This can be either SOAP 1.1 or SOAP 1.2.- Specified by:
getVersion
in interfaceSoapMessage
- Returns:
- the SOAP version
- See Also:
-