Interface Soap11Body
- All Superinterfaces:
SoapBody,SoapElement
Subinterface of
SoapBody that exposes SOAP 1.1 functionality. Necessary because SOAP 1.1 differs from SOAP
1.2 with respect to SOAP Faults.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddClientOrSenderFault(String faultStringOrReason, Locale locale) Adds aClient/Senderfault to the body.Adds a SOAP 1.1Fault to the body with a localized message.addMustUnderstandFault(String faultStringOrReason, Locale locale) Adds aMustUnderstandfault to the body.addServerOrReceiverFault(String faultStringOrReason, Locale locale) Adds aServer/Receiverfault to the body.addVersionMismatchFault(String faultStringOrReason, Locale locale) Adds aVersionMismatchfault to the body.getFault()Returns theSoapFaultof this body.Methods inherited from interface org.springframework.ws.soap.SoapBody
getPayloadResult, getPayloadSource, hasFaultMethods inherited from interface org.springframework.ws.soap.SoapElement
addAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getName, getSource, removeAttribute
-
Method Details
-
addFault
Soap11Fault addFault(QName faultCode, String faultString, Locale faultStringLocale) throws SoapFaultException Adds a SOAP 1.1Fault to the body with a localized message. Adding a fault removes the current content of the body.- Parameters:
faultCode- the fully qualified fault faultCodefaultString- the faultStringfaultStringLocale- the faultString locale. May benull- Returns:
- the added
Soap11Fault - Throws:
IllegalArgumentException- if the fault faultCode is not fully qualifiedSoapFaultException
-
getFault
Soap11Fault getFault()Description copied from interface:SoapBodyReturns theSoapFaultof this body. -
addMustUnderstandFault
Soap11Fault addMustUnderstandFault(String faultStringOrReason, Locale locale) throws SoapFaultException Description copied from interface:SoapBodyAdds aMustUnderstandfault to the body. AMustUnderstandis returned when a SOAP header with aMustUnderstandattribute is not understood.Adding a fault removes the current content of the body.
- Specified by:
addMustUnderstandFaultin 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
Soap11Fault addClientOrSenderFault(String faultStringOrReason, Locale locale) throws SoapFaultException Description copied from interface:SoapBodyAdds aClient/Senderfault to the body. For SOAP 1.1, this adds a fault with aClientfault code. For SOAP 1.2, this adds a fault with aSendercode.Adding a fault removes the current content of the body.
- Specified by:
addClientOrSenderFaultin 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
Soap11Fault addServerOrReceiverFault(String faultStringOrReason, Locale locale) throws SoapFaultException Description copied from interface:SoapBodyAdds aServer/Receiverfault to the body. For SOAP 1.1, this adds a fault with aServerfault code. For SOAP 1.2, this adds a fault with aReceivercode.Adding a fault removes the current content of the body.
- Specified by:
addServerOrReceiverFaultin 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
Soap11Fault addVersionMismatchFault(String faultStringOrReason, Locale locale) throws SoapFaultException Description copied from interface:SoapBodyAdds aVersionMismatchfault to the body.Adding a fault removes the current content of the body.
- Specified by:
addVersionMismatchFaultin 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
-