I would like to call web service from Camel. But I receive null everytime I
call the service. Could you please help me finding a solution?

The service is running on tomcat and I can test it with soapUI. Here is the
request from SoapUI.



and the response returns Hello Pavel. I followed the CamelInAction guide
with creating contract first web service. I am able to run the route which
reads a file and send it to web service.

The code of the route is the following.



The FileProcessor class looks like this:



In next version I would like to generate a request through the objects
generated by cxf-codegen-plugin (HalloWorld.java, HelloWorldImpl.java,
HelloWorldRequest.java, HelloWorldResponse.java, HelloWorldService.java,
ObjectFactory.java, package-info.java).

In the camel-cxf.xml I have:



To read response from the web service I am using this route.



The last route gets data from seda...



...and prints the result.



The output from the execution is: Data received: null

I would expect some XML file which I could parse with cxf objects. Could you
please help me finding the problem?

Thank you

Pavel



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

Reply via email to