Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.3
-
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).