cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Support SOAP 1.1 and SOAP 1.2 in the same Endpoint
Date Mon, 15 Nov 2010 20:37:17 GMT

I'd probably need to see a test case, but you really don't need to enable 1.1 
support if 1.2 is turned on.    With CXF, if 1.2 is turned on, it will also 
work fine for 1.1 requests.  If a 1.1 request comes in, it will automatically 
respond with a 1.1 response.

Dan


On Monday 15 November 2010 2:12:26 am hsemar wrote:
> Hello experts,
> 
>                     I have a simple web service, lets call it as
> webserviceA, and I would like the web service method to support soap1.1 and
> soap 1.2 versions. I'm using JBossWS CXF 3.2.2 GA which uses CXF 2.2.5.
> 
> I have used the following annotion in my service class to add soap 1.2
> support. I used JBossWS runtime to create a web service project
> 
>  @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)
> 
> The wsdl file is generated with soap 1.2 support and it works fine too. But
> the moment I manaually add soap 1.1 binding in the same wsdl and deploy to
> the server, only soap 1.1 binding works fine. When I try to access soap 1.2
> I got the following message
> 
> 
>       <soap:Fault>
>          <faultcode>soap:VersionMismatch</faultcode>
>          <faultstring>A SOAP 1.2 message is not valid when sent to a SOAP
> 1.1 only endpoint.</faultstring>
>       </soap:Fault>
> 
> 
> I hope the experts here can enlighten me if this is possible at all.
> 
> 
> 
> Thanks in Advance,
> Ramesh

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Mime
View raw message