-
Notifications
You must be signed in to change notification settings - Fork 317
Description
Phil McCarley opened SWS-868 and commented
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).
http://www.w3.org/TR/2007/REC-soap12-part2-20070427/#tabresstatereccodes
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.
Affects: 2.1.4
Referenced from: commits ded1efd