Hi SI users,

My flow is as follows:

ws:inbound-gateway -> payload-type-router -> service-activator

Code:
<si-ws:inbound-gateway id="ws-inbound-gateway"
		request-channel="wsRequestChannel" reply-channel="wsResponseChannel"
		marshaller="marshaller" />

When the service activator method is called I would like to return response object to the web service that started the flow. Which way should I choose?

1) Should I define output-channel="wsRequestChannel" for the service activator and return new message with ws-response object as a payload?
2) Should I return message with ws-response object as a payload?
3) Should I just return ws-response object itself and it will be auto-magically passed to the <si-ws:inbound-gateway> as a response ?

Thanks.

Regards,
Krzysztof