Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2463

SOAP 1.2 service return SOAP 1.2 Fault message in response to SOAP 1.1 request when exception is thrown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.3
    • 2.1.8, 2.2.5
    • Soap Binding
    • None

    Description

      I've created a JAX-WS web service using JAXB databinding that I would like to support both SOAP 1.1 and SOAP 1.2. Based on info I saw referenced elsewhere, I configured it as a SOAP 1.2 endpoint expecting that CXF (as of version 2.2.3, anyway) would properly return a SOAP 1.1 response to a SOAP 1.1 request.

      This works fine for successful responses, but when my service throws an exception, CXF is returning a SOAP 1.2 fault message. I tried changing my code to throw a SOAPFaultException and used SOAPFactory to explicity create a SOAPFault for SOAP 1.1. protocol. In this case, the fault code ends up scoped to the SOAP 1.1 namespace, but it's returned in a SOAP 1.2 envelope (and SOAP 1.2 format Reason).

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            mbrennanvegas Michael Brennan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: