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.

Reply via email to