I recommend you try this

Some ideas:
I am assuming you have cxf webservice as seperate project or hitting service
deployed elsewhere from camel.If no, i recommend to untangle cxf webservice
and camel.

First get the cxf webservice  project deployed.Check if the wsdl is
available.

then change you cxf bean to take wsdl argument.

  <cxf:cxfEndpoint id="HelloService"
    address="http://localhost:8080/HelloWeb/Hello";
    wsdlURL="http://localhost:8080/HelloWeb/Hello?wsdl"; endpointName=??
serviceName=??/>

camel-context:

 <route id="test3">
           
            <from uri="stream:in?promptMessage=Enter Something:"/>
            <to uri="cxf:bean:HelloService"/>
            <to uri="bean:myBean?method=myMethod"/>
     
        </route>

this should work.



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-call-CXF-web-service-from-Camel-tp5729692p5729694.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to