Hi,

I am trying to implement the next flow:

File-inbound-Adapter-->fileChannel-->ServiceActivatorWebService-->responseChannel-->ServiceActivatorProcessResponse

I read a file from a folder, create a ws service request based on it and process the ws response. Additionally, I would like to archive the original file if the WebService was successful. My ServiceActivatorWebService returns a message with the XML response, so I am loosing the message with the original file in order for the File-outbound-Adapter to move the file to the archive folder.

In other words, I would like to add the next flow (if the ws request was successful):
ServiceActivatorWebService-->fileChannel2-->File-outbound-Adapter

I cannot come up with a solution that does not involve changing the ServiceActivatorWebService business class to programatically send the original message to fileChannel2.

Thanks !