SOAPValidationException¶
-
public class
SOAPValidationException
extends ValidationException¶ Exception class that can generate SOAP fault messages from the information it has been given.
Author: Frankie Lam
Fields¶
ELEMENT_ERROR¶
NAMESPACE_PREFIX_SOAP_ENVELOPE¶
NAMESPACE_URI_SOAP_ENVELOPE¶
SOAP_FAULT_CLIENT¶
SOAP_FAULT_MUST_UNDERSTAND¶
SOAP_FAULT_SERVER¶
SOAP_FAULT_VERSION_MISMATCH¶
Constructors¶
SOAPValidationException¶
SOAPValidationException¶
-
public
SOAPValidationException
(String faultCode, String faultString, String detail)¶ Constructs a
SOAPValidationException
object given its fault code and fault string.Parameters: - faultCode – Fault codes as specified in the SOAP 1.1 specification
- faultString – Human readable explanation of the fault.
- detail – Specific error information related to the SOAP Body element. It must be present if the SOAP Body cannot be processed successfully, and must NOT be present if the error is caused by header entries.
SOAPValidationException¶
-
public
SOAPValidationException
(String faultCode, String faultString, String faultActor, String detail)¶ Constructs a
SOAPValidationException
object given its fault code and fault string.Parameters: - faultCode – Fault codes as specified in the SOAP 1.1 specification
- faultString – Human readable explanation of the fault.
- faultActor – Information on who caused the fault to happen.
- detail – Specific error information related to the SOAP Body element. It must be present if the SOAP Body cannot be processed successfully, and must NOT be present if the error is caused by header entries.
Methods¶
getSOAPMessage¶
-
public SOAPMessage
getSOAPMessage
()¶ Get SOAP Fault message from the information given.
Returns: SOAPMessage
object containing Fault element.