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

WebServiceMessageReceiverHandlerAdapter not easily overridable to produce SOAP faults

    Details

    • Type: Defect
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1 GA
    • Fix Version/s: 2.1.2
    • Component/s: None
    • Labels:
      None

      Description

      WebServiceMessageReceiverHandlerAdapter has been changed recently to catch InvalidXmlException and return a HTTP 400 status code. We would like to instead return a SOAP fault with a detailed message of the parse error (I'm not certain but returning 400 is probably against the SOAP spec). This is impossible with the new implementation of WebServiceMessageReceiverHandlerAdapter without re-implementing the handle(...) method.

      Could the handling of this exception (and probably the non-POST transport method) be done by a separate protected method such that it can be overridden?

        Activity

        machine Damon Maria 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.1.2 [ 13606 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        arjen.poutsma Arjen Poutsma made changes -
        Time Spent 0.2h [ 720 ]
        Worklog Id 29715 [ 29715 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            machine Damon Maria
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - Not Specified
              Not Specified
              Logged:
              Time Spent - 0.2h
              0.2h