public interface Soap11Body extends SoapBody
SoapBody
that exposes SOAP 1.1 functionality. Necessary because SOAP 1.1 differs from
SOAP 1.2 with respect to SOAP Faults.Soap11Fault
Modifier and Type | Method and Description |
---|---|
Soap11Fault |
addClientOrSenderFault(String faultStringOrReason,
Locale locale)
Adds a
Client /Sender fault to the body. |
Soap11Fault |
addFault(QName faultCode,
String faultString,
Locale faultStringLocale)
Adds a SOAP 1.1
|
Soap11Fault |
addMustUnderstandFault(String faultStringOrReason,
Locale locale)
Adds a
MustUnderstand fault to the body. |
Soap11Fault |
addServerOrReceiverFault(String faultStringOrReason,
Locale locale)
Adds a
Server /Receiver fault to the body. |
Soap11Fault |
addVersionMismatchFault(String faultStringOrReason,
Locale locale)
Adds a
VersionMismatch fault to the body. |
Soap11Fault |
getFault()
Returns the
SoapFault of this body. |
getPayloadResult, getPayloadSource, hasFault
addAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getName, getSource, removeAttribute
Soap11Fault addFault(QName faultCode, String faultString, Locale faultStringLocale) throws SoapFaultException
faultCode
- the fully qualified fault faultCodefaultString
- the faultStringfaultStringLocale
- the faultString locale. May be null
IllegalArgumentException
- if the fault faultCode is not fully qualifiedSoapFaultException
Soap11Fault getFault()
SoapBody
SoapFault
of this body.Soap11Fault 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.1SoapFault
SoapFaultException
Soap11Fault 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.1SoapFault
SoapFaultException
Soap11Fault 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.1SoapFault
SoapFaultException
Soap11Fault 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.1SoapFault
SoapFaultException