I've recently started looking at servicemix / camel so apologies if this is a bit of a newbie question.
I was looking at the camel cxf proxy example and have managed to route to my external axis2 web service using the below. However I would like to also save the incoming SOAP message to the file system so I added <to uri="file:camel/outputx"/>.
This causes the exception (presumably because the message is no longer routed to the axis2 ws):
<faultstring>com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at
row,col {unknown-source}:
1,0</faultstring>
Can anyone tell me how to do achieve saving the message enroute to the back end web service please ??
thanks.
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route>
<from uri="cxf:bean:myProxy?dataFormat=MESSAGE"/>
<log message="Moving ${file:name} to the output directory"/>
<!--
<to uri="file:camel/outputx"/>
-->
<to uri="http://0.0.0.0:8080/AXIS2-ADB/services/MyService?throwExceptionOnFailure=false"/>
</route>
</camelContext>