Hi, PLease find below example that is working for me . <bean id="myBean" class="org.test.MyBean"/> <cxf:cxfEndpoint id="helloService" address="http://localhost:8080/HelloWeb/Hello" wsdlURL="http://localhost:8080/HelloWeb/Hello?wsdl" serviceClass="com.server.HelloFirst" endpointName="s:HelloFirstImplPort" serviceName="s:HelloFirstImplService" xmlns:s="http://server.com/"> <cxf:properties> <entry key="dataFormat" value="MESSAGE"/> </cxf:properties> </cxf:cxfEndpoint> <camel:camelContext xmlns="http://camel.apache.org/schema/spring"> <route id="test3"> <from uri="stream:in?promptMessage=Enter Something:"/> <to uri="cxf:bean:helloService"/> <to uri="bean:myBean?method=myMethod"/> </route> </camel:camelContext> package com.server; import javax.jws.WebService;
@WebService(endpointInterface = "com.server.HelloFirst") public class HelloFirstImpl { public String myHello(String str){ return "HelloFirstImpl: Hello :"+str; } } Thanks, Abhi -- View this message in context: http://camel.465427.n5.nabble.com/Calling-WebService-with-Camel-tp5731026p5731122.html Sent from the Camel - Users mailing list archive at Nabble.com.