Re: How to set Soap version on client side

2008-01-15 Thread yulinxp

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 [EMAIL PROTECTED]:
 
 
  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.



Re: How to set Soap version on client side Server Side

2008-01-15 Thread yulinxp

I tried these:
@BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)
@BindingType(value=org.apache.cxf.binding.soap.SoapTransportFactory.SOAP_12_HTTP_BINDING)
 

But neither of them work. I make it work by using the real String as below.
@BindingType(value=http://www.w3.org/2003/05/soap/bindings/HTTP/;)

Anybody knows the reason?





yulinxp wrote:
 
 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 [EMAIL PROTECTED]:
 
 
  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-tp14692146p14841545.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: How to set Soap version on client side Server Side

2008-01-15 Thread Daniel Kulp

Those values on those interfaces are the Strings.   For examle, if you 
look at the code for javax.xml.ws.soap.SOAPBinding, you see:

public static final String SOAP12HTTP_BINDING
  = http://www.w3.org/2003/05/soap/bindings/HTTP/;;

Thus, the annotation you should have written is:

@BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)

(Note: no quotes around it)   That gets the proper string directly from 
the SOAPBinding interface.

Dan




On Tuesday 15 January 2008, yulinxp wrote:
 I tried these:
 @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)
 @BindingType(value=org.apache.cxf.binding.soap.SoapTransportFactory.S
OAP_12_HTTP_BINDING)

 But neither of them work. I make it work by using the real String as
 below.
 @BindingType(value=http://www.w3.org/2003/05/soap/bindings/HTTP/;)

 Anybody knows the reason?


 --
--

 yulinxp wrote:
  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.createBindi
 ngInfo(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#a124
 97388
 
   DM
  
   2008/1/8, yulinxp [EMAIL PROTECTED]:
   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/bean
  s
   http://www.springframework.org/schema/beans/spring-beans-2.0.x
  sd 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-tp14
 692146p14694295.html
 
   Sent from the cxf-user mailing list archive at Nabble.com.



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog


Re: How to set Soap version on client side

2008-01-09 Thread yulinxp

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 [EMAIL PROTECTED]:
 
 
  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-tp14692146p14714748.html
Sent from the cxf-user mailing list archive at Nabble.com.



How to set Soap version on client side

2008-01-08 Thread yulinxp

I use STP plugin in Eclipse. I set STP to use SOAP1.2. Sever side shows that
it's using Soap1.2 (Soap12FaultOutInterceptor).But client side still use
Soap1.1 (Soap11FaultInInterceptor). How to set Soap version on client
side???

*sever side:
Dec 26, 2007 1:48:25 PM
org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor
handleMessage
INFO: class
org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptorapplication/soap+xml

*client side:
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Could not parse message.
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:65)

Here is my client code:
public final class Client {

private Client() {
}

public static void main(String args[]){
// START SNIPPET: client
ClassPathXmlApplicationContext context
= new ClassPathXmlApplicationContext(new String[]
{demo/spring/client/client-beans.xml});

HelloWorld client = (HelloWorld)context.getBean(client);
   
String response;
try {
response = client.sayHi(Fault);
System.out.println(Response:  + response);
} catch (BusinessLogicException_Exception e) {
// TODO Auto-generated catch block
System.out.println(client receive exception);
e.printStackTrace();
}
// END SNIPPET: client
}
} 

//client-beans.xml

beans xmlns=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:jaxws=http://cxf.apache.org/jaxws;
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/schema/jaxws.xsd;

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:9090/spring_http/ws/ServerEndPoint/
  
 /bean
/beans
-- 
View this message in context: 
http://www.nabble.com/How-to-set-Soap-version-on-client-side-tp14692146p14692146.html
Sent from the cxf-user mailing list archive at Nabble.com.



Re: How to set Soap version on client side

2008-01-08 Thread yulinxp

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.



Re: How to set Soap version on client side

2008-01-08 Thread Dušan Mamrilla
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


2008/1/8, yulinxp [EMAIL PROTECTED]:


 I use STP plugin in Eclipse. I set STP to use SOAP1.2. Sever side shows
 that
 it's using Soap1.2 (Soap12FaultOutInterceptor).But client side still use
 Soap1.1 (Soap11FaultInInterceptor). How to set Soap version on client
 side???

 *sever side:
 Dec 26, 2007 1:48:25 PM
 org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor
 handleMessage
 INFO: class

 org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptorapplication
 /soap+xml

 *client side:
 INFO: Interceptor has thrown exception, unwinding now
 org.apache.cxf.binding.soap.SoapFault: Could not parse message.
 at

 org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage
 (Soap11FaultInInterceptor.java:65)

 Here is my client code:
 public final class Client {

 private Client() {
 }

 public static void main(String args[]){
 // START SNIPPET: client
 ClassPathXmlApplicationContext context
 = new ClassPathXmlApplicationContext(new String[]
 {demo/spring/client/client-beans.xml});

 HelloWorld client = (HelloWorld)context.getBean(client);

 String response;
 try {
 response = client.sayHi(Fault);
 System.out.println(Response:  + response);
 } catch (BusinessLogicException_Exception e) {
 // TODO Auto-generated catch block
 System.out.println(client receive exception);
 e.printStackTrace();
 }
 // END SNIPPET: client
 }
 }

 //client-beans.xml

 beans xmlns=http://www.springframework.org/schema/beans;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:jaxws=http://cxf.apache.org/jaxws;
 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/schema/jaxws.xsd;

 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:9090/spring_http/ws/ServerEndPoint/

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




Re: How to set Soap version on client side

2008-01-08 Thread Dušan Mamrilla
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 [EMAIL PROTECTED]:


 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.




Re: How to set Soap version on client side

2008-01-08 Thread 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 [EMAIL PROTECTED]:


 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.



Re: How to set Soap version on client side

2008-01-08 Thread Glen Mazza
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 [EMAIL PROTECTED]:
 
 
  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.