Interface Soap12Body
- All Superinterfaces:
SoapBody
,SoapElement
Subinterface of
SoapBody
that exposes SOAP 1.2 functionality. Necessary because
SOAP 1.1 differs from SOAP 1.2 with respect to SOAP Faults.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionaddClientOrSenderFault
(String faultStringOrReason, Locale locale) Adds aClient
/Sender
fault to the body.addDataEncodingUnknownFault
(QName[] subcodes, String reason, Locale locale) Adds aDataEncodingUnknown
fault to the body.addMustUnderstandFault
(String faultStringOrReason, Locale locale) Adds aMustUnderstand
fault to the body.addServerOrReceiverFault
(String faultStringOrReason, Locale locale) Adds aServer
/Receiver
fault to the body.addVersionMismatchFault
(String faultStringOrReason, Locale locale) Adds aVersionMismatch
fault to the body.@Nullable Soap12Fault
getFault()
Returns theSoapFault
of this body.Methods inherited from interface org.springframework.ws.soap.SoapBody
getPayloadResult, getPayloadSource, hasFault
Methods inherited from interface org.springframework.ws.soap.SoapElement
addAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getName, getSource, removeAttribute
-
Method Details
-
addDataEncodingUnknownFault
Soap12Fault addDataEncodingUnknownFault(QName[] subcodes, String reason, Locale locale) throws SoapFaultException Adds aDataEncodingUnknown
fault to the body.Adding a fault removes the current content of the body.
- Parameters:
subcodes
- the optional fully qualified fault subcodesreason
- the fault reasonlocale
- the language of the fault reason- Returns:
- the created
SoapFault
- Throws:
SoapFaultException
-
getFault
@Nullable Soap12Fault getFault()Description copied from interface:SoapBody
Returns theSoapFault
of this body. -
addMustUnderstandFault
Soap12Fault addMustUnderstandFault(String faultStringOrReason, Locale locale) throws SoapFaultException Description copied from interface:SoapBody
Adds aMustUnderstand
fault to the body. AMustUnderstand
is returned when a SOAP header with aMustUnderstand
attribute is not understood.Adding a fault removes the current content of the body.
- Specified by:
addMustUnderstandFault
in interfaceSoapBody
- Parameters:
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason textlocale
- the language of faultStringOrReason. Optional for SOAP 1.1- Returns:
- the created
SoapFault
- Throws:
SoapFaultException
-
addClientOrSenderFault
Soap12Fault addClientOrSenderFault(String faultStringOrReason, Locale locale) throws SoapFaultException Description copied from interface:SoapBody
Adds aClient
/Sender
fault to the body. For SOAP 1.1, this adds a fault with aClient
fault code. For SOAP 1.2, this adds a fault with aSender
code.Adding a fault removes the current content of the body.
- Specified by:
addClientOrSenderFault
in interfaceSoapBody
- Parameters:
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason textlocale
- the language of faultStringOrReason. Optional for SOAP 1.1- Returns:
- the created
SoapFault
- Throws:
SoapFaultException
-
addServerOrReceiverFault
Soap12Fault addServerOrReceiverFault(String faultStringOrReason, Locale locale) throws SoapFaultException Description copied from interface:SoapBody
Adds aServer
/Receiver
fault to the body. For SOAP 1.1, this adds a fault with aServer
fault code. For SOAP 1.2, this adds a fault with aReceiver
code.Adding a fault removes the current content of the body.
- Specified by:
addServerOrReceiverFault
in interfaceSoapBody
- Parameters:
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason textlocale
- the language of faultStringOrReason. Optional for SOAP 1.1- Returns:
- the created
SoapFault
- Throws:
SoapFaultException
-
addVersionMismatchFault
Soap12Fault addVersionMismatchFault(String faultStringOrReason, Locale locale) throws SoapFaultException Description copied from interface:SoapBody
Adds aVersionMismatch
fault to the body.Adding a fault removes the current content of the body.
- Specified by:
addVersionMismatchFault
in interfaceSoapBody
- Parameters:
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason textlocale
- the language of faultStringOrReason. Optional for SOAP 1.1- Returns:
- the created
SoapFault
- Throws:
SoapFaultException
-