Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-868

Add support for SOAP v1.2 Fault to Status Code mapping in WebServiceTemplate


    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.4
    • Fix Version/s: 2.2.RC1
    • Component/s: Core
    • Labels:


      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.


        mccarl Phil McCarley created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Assignee Arjen Poutsma [ arjen.poutsma ]
        arjen.poutsma Arjen Poutsma made changes -
        Fix Version/s 2.2 [ 12850 ]
        arjen.poutsma Arjen Poutsma made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]


          • Assignee:
            arjen.poutsma Arjen Poutsma
            mccarl Phil McCarley
          • Votes:
            0 Vote for this issue
            2 Start watching this issue


            • Created: