| org.springframework.ws.soap.SoapBody
All known Subclasses: org.springframework.ws.soap.saaj.SaajSoapBody, org.springframework.ws.soap.axiom.AxiomSoapBody,
SoapBody | public interface SoapBody extends SoapElement(Code) | | Represents the Body element in a SOAP message. A SOAP body contains the payload of the
message. This payload can be custom XML, or a SoapFault (but not both).
Note that the source returned by getSource() includes the SOAP Body element itself. For the contents of
the body, use getPayloadSource() .
author: Arjen Poutsma See Also: SoapEnvelope.getBody See Also: SoapBody.getPayloadSource() See Also: SoapBody.getPayloadResult() See Also: SoapFault since: 1.0.0 |
addClientOrSenderFault | SoapFault addClientOrSenderFault(String faultStringOrReason, Locale locale) throws SoapFaultException(Code) | | Adds a 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.
Parameters: faultStringOrReason - the SOAP 1.1 fault string or SOAP 1.2 reason text Parameters: locale - the language of faultStringOrReason. Optional for SOAP 1.1 the created SoapFault |
addMustUnderstandFault | SoapFault addMustUnderstandFault(String faultStringOrReason, Locale locale) throws SoapFaultException(Code) | | Adds a 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.
Parameters: faultStringOrReason - the SOAP 1.1 fault string or SOAP 1.2 reason text Parameters: locale - the language of faultStringOrReason. Optional for SOAP 1.1 the created SoapFault |
addServerOrReceiverFault | SoapFault addServerOrReceiverFault(String faultStringOrReason, Locale locale) throws SoapFaultException(Code) | | Adds a 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.
Parameters: faultStringOrReason - the SOAP 1.1 fault string or SOAP 1.2 reason text Parameters: locale - the language of faultStringOrReason. Optional for SOAP 1.1 the created SoapFault |
addVersionMismatchFault | SoapFault addVersionMismatchFault(String faultStringOrReason, Locale locale) throws SoapFaultException(Code) | | Adds a VersionMismatch fault to the body.
Adding a fault removes the current content of the body.
Parameters: faultStringOrReason - the SOAP 1.1 fault string or SOAP 1.2 reason text Parameters: locale - the language of faultStringOrReason. Optional for SOAP 1.1 the created SoapFault |
getFault | SoapFault getFault()(Code) | | Returns the SoapFault of this body.
the SoapFault , or null if none is present |
getPayloadResult | Result getPayloadResult()(Code) | | Returns a Result that represents the contents of the body.
the message contents |
getPayloadSource | Source getPayloadSource()(Code) | | Returns a Source that represents the contents of the body.
the message contents |
hasFault | boolean hasFault()(Code) | | Indicates whether this body has a SoapFault .
true if the body has a fault; false otherwise |
|
|