1 Reply Latest reply on Apr 12, 2010 12:48 AM by Claus Ibsen

    Camel wireTap router with InOut WebService

    Andrew Whelan Newbie



      I'm trying to figure out how to use Camel to route the input of a web service call and still have the web service go on its way and complete.


      The WireTap Enterprise Integration Pattern works for Mule (sorry if mentioning Mule on here is shamful).


      The following allows my web service to complete but I'd also like the input of the web service to be routed to a file.


      I'm using the following in my Camel Router


      The jbi endpoint above is the endpoint of a web service and the web service works for this. I want to write the input (or any part of the web service request) to a file. The WireTap call above doesn't do this. Does anyone have any idea how I can change the above snippet to write the incoming service request to a file and still have the web service call complete??


      PS: Just for kicks, following is the mule configuration that actually does what I want. I'd prefer to use ServiceMix/Fuse if I could.

         <model name="PurchaseOrder">
              <service name="CustomerService">
                      <cxf:inbound-endpoint address="http://localhost:9090/services/CustomerService"
                      <file:outbound-endpoint path="customer/operation" 
                          <transformer ref="CustomerToString"></transformer>
              <spring-object bean="CustomerServiceWebService"></spring-object>