If you want to put the response to file, you should define the route like this

<from uri="file endpoint: message.xml"/> ( message.xml has soap request ? )
<to uri="cxfEndpoint"/>
<to uri="file response.xml"/>


On Mon Oct 31 17:01:18 2011, Gnanaguru S wrote:

Hi

Is there any simple camel example which can read from web service. I will be
more comfortable if it was through camel-blueprint.

If i am using blueprint, Then how i will be directing soap request. ?

<SAMPLE iDEA-- Can anyone suggest modifications to it>
<cxf:cxfEndpoint id="cxfEndpoint" address="http://0.0.0.0:8080/there";
    wsdlUrl="file://path/to/your/wsdl"
    serviceClass="the_service_class_generated_by_cxf_codegen"/>

...
<from uri="file endpoint: message.xml"/>  ( message.xml has soap request  ? )
<to uri="cxfEndpoint"/>

<from uri="cxf Endpoint"/>  ( message.xml has soap request  ? )
<to uri="file response.xml"/>   ( response.xml which will receive soap
response )


Regards
Guru.

--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-WS-example-tp4951882p4951882.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to