|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Soap12Body
Subinterface of SoapBody
that exposes SOAP 1.2 functionality. Necessary because SOAP 1.1 differs from
SOAP 1.2 with respect to SOAP Faults.
Method Summary | |
---|---|
Soap12Fault |
addClientOrSenderFault(String faultStringOrReason,
Locale locale)
Adds a Client /Sender fault to the body. |
Soap12Fault |
addDataEncodingUnknownFault(QName[] subcodes,
String reason,
Locale locale)
Adds a DataEncodingUnknown fault to the body. |
Soap12Fault |
addMustUnderstandFault(String faultStringOrReason,
Locale locale)
Adds a MustUnderstand fault to the body. |
Soap12Fault |
addServerOrReceiverFault(String faultStringOrReason,
Locale locale)
Adds a Server /Receiver fault to the body. |
Soap12Fault |
addVersionMismatchFault(String faultStringOrReason,
Locale locale)
Adds a VersionMismatch fault to the body. |
Soap12Fault |
getFault()
Returns the SoapFault 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 Detail |
---|
Soap12Fault addDataEncodingUnknownFault(QName[] subcodes, String reason, Locale locale) throws SoapFaultException
DataEncodingUnknown
fault to the body.
Adding a fault removes the current content of the body.
subcodes
- the optional fully qualified fault subcodesreason
- the fault reasonlocale
- the language of the fault reason
SoapFault
SoapFaultException
Soap12Fault getFault()
SoapBody
SoapFault
of this body.
getFault
in interface SoapBody
SoapFault
, or null
if none is presentSoap12Fault addMustUnderstandFault(String faultStringOrReason, Locale locale) throws SoapFaultException
SoapBody
MustUnderstand
fault to the body. A MustUnderstand
is returned when a SOAP
header with a MustUnderstand
attribute is not understood.
Adding a fault removes the current content of the body.
addMustUnderstandFault
in interface SoapBody
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason textlocale
- the language of faultStringOrReason. Optional for SOAP 1.1
SoapFault
SoapFaultException
Soap12Fault addClientOrSenderFault(String faultStringOrReason, Locale locale) throws SoapFaultException
SoapBody
Client
/Sender
fault to the body. For SOAP 1.1, this adds a fault with a
Client
fault code. For SOAP 1.2, this adds a fault with a Sender
code.
Adding a fault removes the current content of the body.
addClientOrSenderFault
in interface SoapBody
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason textlocale
- the language of faultStringOrReason. Optional for SOAP 1.1
SoapFault
SoapFaultException
Soap12Fault addServerOrReceiverFault(String faultStringOrReason, Locale locale) throws SoapFaultException
SoapBody
Server
/Receiver
fault to the body. For SOAP 1.1, this adds a fault with a
Server
fault code. For SOAP 1.2, this adds a fault with a Receiver
code.
Adding a fault removes the current content of the body.
addServerOrReceiverFault
in interface SoapBody
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason textlocale
- the language of faultStringOrReason. Optional for SOAP 1.1
SoapFault
SoapFaultException
Soap12Fault addVersionMismatchFault(String faultStringOrReason, Locale locale) throws SoapFaultException
SoapBody
VersionMismatch
fault to the body.
Adding a fault removes the current content of the body.
addVersionMismatchFault
in interface SoapBody
faultStringOrReason
- the SOAP 1.1 fault string or SOAP 1.2 reason textlocale
- the language of faultStringOrReason. Optional for SOAP 1.1
SoapFault
SoapFaultException
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |