In Spring Integration, using inbound-gateway, do you know how to save each SOAP WS Request to separated files ?
Currently, I stuck at:
<!-- inbound -->
<ws:inbound-gateway id="inbound-gateway" request-channel="SOAPRequestChannel" reply-channel="SOAPResponseChannel"/>
<int:channel id="SOAPRequestChannel">
<int:interceptors>
<int:wire-tap channel="SOAPRequestChannelForLog"/>
</int:interceptors>
</int:channel>
<int:channel id="SOAPResponseChannel" />
<int:channel id="SOAPRequestChannelForLog" />
<int:logging-channel-adapter id="logger" expression="payload" level="INFO" channel="SOAPRequestChannelForLog"/>
But it just log all requests in 1 file.
OR I have to write another class like LogToFile which has a method to save that request to file, replace int:logging-channel-adapter with int:service-activator ? Does Spring support out-of-the-box logging each SOAP request ? I read the reference document, but couldn't find any thing.
OR there is any better way ? ^_^
Regards,