Package feign.soap
Class SOAPErrorDecoder
- java.lang.Object
-
- feign.soap.SOAPErrorDecoder
-
- All Implemented Interfaces:
feign.codec.ErrorDecoder
public class SOAPErrorDecoder extends Object implements feign.codec.ErrorDecoder
Wraps the returnedSOAPFaultif present into aSOAPFaultException. So you need to catchSOAPFaultExceptionto retrieve the reason of theSOAPFault.If no faults is returned then the default
ErrorDecoderis used to return exception and eventually retry the call.
-
-
Constructor Summary
Constructors Constructor Description SOAPErrorDecoder()SOAPErrorDecoder(String soapProtocol)SOAPErrorDecoder constructor allowing you to specify the SOAP protocol.
-
-
-
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)
-
-