Package feign.soap

Class SOAPErrorDecoder

  • All Implemented Interfaces:
    ErrorDecoder

    public class SOAPErrorDecoder
    extends Object
    implements ErrorDecoder
    Wraps the returned SOAPFault if present into a SOAPFaultException. So you need to catch SOAPFaultException to retrieve the reason of the SOAPFault.

    If no faults is returned then the default ErrorDecoder is used to return exception and eventually retry the call.

    • Constructor Detail

      • SOAPErrorDecoder

        public SOAPErrorDecoder()
      • SOAPErrorDecoder

        public SOAPErrorDecoder​(String soapProtocol)
        SOAPErrorDecoder constructor allowing you to specify the SOAP protocol.
        Parameters:
        soapProtocol - a string constant representing the MessageFactory protocol.
        See Also:
        SOAPConstants.SOAP_1_1_PROTOCOL, SOAPConstants.SOAP_1_2_PROTOCOL, SOAPConstants.DYNAMIC_SOAP_PROTOCOL, MessageFactory.newInstance(String)