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, 15 Jan 2008 15:24:49 GMT

For sever side, I add
@BindingType(value="javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING") to my
implementation class. When deploying in tomcat, I got the following
exception:

Jan 15, 2008 9:16:37 AM org.springframework.web.context.ContextLoader
initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'helloWorld': Invocation of init method failed; nested exception
is org.a
pache.cxf.service.factory.ServiceConstructionException: Could not resolve a
binding for javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Could not resolve a binding for
javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:296)

What did I miss?

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


yulinxp wrote:
> 
> Is this setting for server side? 
> @BindingType(value=javax.xml.ws.soap.SOAPBinding.xxx)
> After wsdl file is generated using version SOAP1.2 , I don't need to set
> this option for server. And server picks up the version right. I don't
> know how server does it though.
> 
> 
> 
> Glen Mazza-2 wrote:
>> 
>> http://markmail.org/message/b7w4vugla43nmj7p?
>> 
>> 
>> Am Dienstag, den 08.01.2008, 12:43 -0800 schrieb yulinxp:
>>> 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-tp14692146p14841529.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message