cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yulinxp <yuli...@gmail.com>
Subject Re: How to set Soap version on client side
Date Tue, 08 Jan 2008 20:43:46 GMT

For my client, I look into the src to find out the setting for SOAP1.2.  I
don't know whether there's a better way.

    <bean id="client" class="demo.spring.HelloWorld" 
      factory-bean="clientFactory" factory-method="create"/>
    
	<bean id="clientFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
	  <property name="serviceClass" value="demo.spring.HelloWorld"/>
	  <property name="address"
value="http://localhost:80/spring_http/ws/ServerEndPoint"/>
	
	 <!-- javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING -->
	  <property name="bindingId"
value="http://www.w3.org/2003/05/soap/bindings/HTTP/"/>
  
	</bean>

-----------------------------------------------------


DuĊĦan Mamrilla wrote:
> 
> Look here for setting soap 1.2 on endpoint:
> http://www.nabble.com/SOAP-1.2-spring-config-to12494148.html#a12497388
> 
> DM
> 
> 2008/1/8, yulinxp <yulinxp@gmail.com>:
>>
>>
>> Thanks! I will definitly give it a try.
>> Now I need to solve some problem to even generate soap1.2 wsdl file first
>> :(
>>
>>
>>
>> Well, I use following configuration (example)
>>
>> <beans xmlns="http://www.springframework.org/schema/beans"
>>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>     xmlns:jaxws="http://cxf.apache.org/jaxws"
>>     xmlns:soap="http://cxf.apache.org/bindings/soap"
>>     xsi:schemaLocation="http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>>                         http://cxf.apache.org/jaxws
>> http://cxf.apache.org/schemas/jaxws.xsd
>>                         http://cxf.apache.org/bindings/soap
>> http://cxf.apache.org/schemas/configuration/soap.xsd">
>>
>>     <import resource="classpath:META-INF/cxf/cxf.xml" />
>>     <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
>>     <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>>     <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
>>
>>     <jaxws:client id="spring_id" serviceClass="some.service.class"
>> address="some_service_address">
>>         <jaxws:binding>
>>             <soap:soapBinding version="1.2"/>
>>         </jaxws:binding>
>>     </jaxws:client>
>> </beans>
>>
>> DM
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-set-Soap-version-on-client-side-tp14692146p14694295.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-set-Soap-version-on-client-side-tp14692146p14698236.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message