Class SoapFaultClientException

All Implemented Interfaces:
Serializable

public class SoapFaultClientException extends WebServiceFaultException
Thrown by SoapFaultMessageResolver when the response message has a fault.
Since:
1.0.0
Author:
Arjen Poutsma
See Also:
  • Constructor Details

    • SoapFaultClientException

      public SoapFaultClientException(SoapMessage faultMessage)
      Create a new instance of the SoapFaultClientException class.
      Parameters:
      faultMessage - the fault message
  • Method Details

    • getSoapFault

      public SoapFault getSoapFault()
      Returns the SoapFault.
    • getFaultCode

      public QName getFaultCode()
      Returns the fault code.
    • getFaultStringOrReason

      public String getFaultStringOrReason()
      Returns the fault string or reason. For SOAP 1.1, this returns the fault string. For SOAP 1.2, this returns the fault reason for the default locale.

      Note that this message returns the same as Throwable.getMessage().