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

static final String ELEMENT_ERROR

Error element to be embedded in the detail entries

NAMESPACE_PREFIX_CECID

static final String NAMESPACE_PREFIX_CECID

CECID namespace prefix

NAMESPACE_PREFIX_SOAP_ENVELOPE

static final String NAMESPACE_PREFIX_SOAP_ENVELOPE

SOAP Envelope namespace prefix.

NAMESPACE_URI_CECID

static final String NAMESPACE_URI_CECID

CECID Elements namespace

NAMESPACE_URI_SOAP_ENVELOPE

static final String NAMESPACE_URI_SOAP_ENVELOPE

SOAP Envelope namespace.

SOAP_FAULT_CLIENT

public static final String SOAP_FAULT_CLIENT

SOAP Fault code indicating a client fault that the message should not be resent without change.

SOAP_FAULT_MUST_UNDERSTAND

public static final String SOAP_FAULT_MUST_UNDERSTAND

SOAP Fault code indicating that the client cannot interpret an immediate child of the header element having mustUnderstand equals to “1”.

SOAP_FAULT_SERVER

public static final String SOAP_FAULT_SERVER

SOAP Fault code indicating a server fault that the message may succeed by resending at a later time.

SOAP_FAULT_VERSION_MISMATCH

public static final String SOAP_FAULT_VERSION_MISMATCH

SOAP Fault code indicating version mismatch.

detail

protected final String detail

SOAP Fault detail.

faultActor

protected final String faultActor

SOAP Fault Actor.

Constructors

SOAPValidationException

public SOAPValidationException(String faultCode, String faultString)

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.

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.