On Thu October 8 2009 6:35:13 pm Michael Brennan wrote:
> 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. When I tried to configure both a
>  SOAP 1.1 and SOAP 1.2 endpoint for the same URL, CXF gave me errors. Based
>  on what I saw referenced elsewhere, it seemed like the proper way to do
>  this is just specify it as a SOAP 1.2 endpoint, and CXF (as of version
>  2.2.3, anyway) would properly return a SOAP 1.1 response to a SOAP 1.1
>  request. Correct?
> 
> I've tried that, and it works fine -- except when my service throws an
> exception. In the latter case, 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).
> 
> This looks like a bug to me -- or am I missing something?
> 
> Is there a way to work around this?

That definitely does sound like a bug.  Please log it.

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to