Add support for SOAP v1.2 Fault to Status Code mapping in WebServiceTemplate [SWS-868] #942
SOAP v1.2 specifies that for SOAP Fault's with Code of "env:Sender" the HTTP response status code should be 400 (rather than 500 for all other faults).
This may need to be looked at on the server side (I haven't checked) but I am particularly interested only in the client side at the moment. I have a service that follows this advice and return the 400 code with the Fault content, however when using WebServiceTemplate with any WebServiceConnection based off AbstractHttpSenderConnection, the hasFault() method of that class will only return true if the code is 500.
Hence the problem that I am facing, which is that the response is simple considered an error and a simple WebServiceTransportException is thrown rather than the more useful SoapFaultClientException.
Referenced from: commits ded1efd
The text was updated successfully, but these errors were encountered: