You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by CXF-de'per <pr...@gmail.com> on 2008/09/15 22:41:41 UTC

cxf uses Soap11 instead of Soap12

my .net web service supports Soap12, where as my cxf framework uses
Soap11(SoapBindingInfo over proxy)... is this impact??? 

my wsdl file have something like:
<soap12:binding
			transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="GetNewSubmissionNumber">
			<soap12:operation
			
soapAction="Amerisafe.Icams.Services.Ums/IUmsService/GetNewSubmissionNumber"
				style="document" />
.
.
.
.
the following error related to this issues? how can I make my
Proxy/ServiceFactory to use Soap12 instead of Soap11? is my question
relavant?

 org.apache.xml.security.c14n.CanonicalizationException: Element
GetNewSubmissionNumber has a relative namespace:
xmlns="Amerisafe.Icams.Services.Ums" at
org.apache.ws.security.action.EncryptionAction.execute(EncryptionAction.java:64)
 at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
 at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:166)
 ... 97 more


-- 
View this message in context: http://www.nabble.com/cxf-uses-Soap11-instead-of-Soap12-tp19500702p19500702.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: cxf uses Soap11 instead of Soap12

Posted by CXF-de'per <pr...@gmail.com>.
how if I use spring based like: (I am using CXF 2.0.6 version)

<bean id="icamsService"
class="com.firstbest.pso.amsf.webservice.client2.IUmsService" 
      factory-bean="clientFactory" factory-method="create"/>
      
    <bean id="clientFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
	  <property name="serviceClass"
value="com.firstbest.pso.amsf.webservice.client2.IUmsService"/>
	  <property name="address"
value="http://services2.amerisafe.com/FirstBestQAUMSServices/UmsService.svc"/>
	</bean> 


ndeckard wrote:
> 
> I think you can set up CXF to use Soap12 with the following:
>          <!-- 
>         	Choices: 
>         	1. <soap:soapBinding version="1.1"/>
>         	2. <soap:soapBinding version="1.2"/>
>         	3. REST?
>          -->
>         <jaxws:binding>
> 		<soap:soapBinding version="1.1"/>
> 	</jaxws:binding>
> 
> - Nathan
> 
> 
> CXF-de'per wrote:
>> 
>> my .net web service supports Soap12, where as my cxf framework uses
>> Soap11(SoapBindingInfo over proxy)... is this impact??? 
>> 
>> my wsdl file have something like:
>> <soap12:binding
>> 			transport="http://schemas.xmlsoap.org/soap/http" />
>> 		<wsdl:operation name="GetNewSubmissionNumber">
>> 			<soap12:operation
>> 			
>> soapAction="Amerisafe.Icams.Services.Ums/IUmsService/GetNewSubmissionNumber"
>> 				style="document" />
>> .
>> .
>> .
>> .
>> the following error related to this issues? how can I make my
>> Proxy/SOAPFactory to use Soap12 instead of Soap11? is my question
>> relavant?
>> 
>>  org.apache.xml.security.c14n.CanonicalizationException: Element
>> GetNewSubmissionNumber has a relative namespace:
>> xmlns="Amerisafe.Icams.Services.Ums" at
>> org.apache.ws.security.action.EncryptionAction.execute(EncryptionAction.java:64)
>>  at
>> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
>>  at
>> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:166)
>>  ... 97 more
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/cxf-uses-Soap11-instead-of-Soap12-tp19500702p19501137.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: cxf uses Soap11 instead of Soap12

Posted by ndeckard <nd...@gmail.com>.
I think you can set up CXF to use Soap12 with the following:
         <!-- 
        	Choices: 
        	1. <soap:soapBinding version="1.1"/>
        	2. <soap:soapBinding version="1.2"/>
        	3. REST?
         -->
        <jaxws:binding>
		<soap:soapBinding version="1.1"/>
	</jaxws:binding>

- Nathan


CXF-de'per wrote:
> 
> my .net web service supports Soap12, where as my cxf framework uses
> Soap11(SoapBindingInfo over proxy)... is this impact??? 
> 
> my wsdl file have something like:
> <soap12:binding
> 			transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="GetNewSubmissionNumber">
> 			<soap12:operation
> 			
> soapAction="Amerisafe.Icams.Services.Ums/IUmsService/GetNewSubmissionNumber"
> 				style="document" />
> .
> .
> .
> .
> the following error related to this issues? how can I make my
> Proxy/SOAPFactory to use Soap12 instead of Soap11? is my question
> relavant?
> 
>  org.apache.xml.security.c14n.CanonicalizationException: Element
> GetNewSubmissionNumber has a relative namespace:
> xmlns="Amerisafe.Icams.Services.Ums" at
> org.apache.ws.security.action.EncryptionAction.execute(EncryptionAction.java:64)
>  at
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
>  at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:166)
>  ... 97 more
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/cxf-uses-Soap11-instead-of-Soap12-tp19500702p19501034.html
Sent from the cxf-user mailing list archive at Nabble.com.