Nov 29th, 2012, 09:56 AM
Socket call during incoming web service call.
I am trying to figure out how to make a socket call during a inbound web service call. I am using Spring WS to handle the incoming call which puts the message on a channel. That message is then sent to a server via a tcp-outbound-channel-adapter and a tcp-connection-factory.
This all works fine but I can not figure out how to get the response back to the method the received the web service call. Could you point me to a example that demonstrates something similar to this?
Nov 29th, 2012, 10:03 AM
What do you want to achieve: what is your response, maybe <tcp-outbound-gateway> is OK for you?
Of course you can use <recepient-list-router> or <publish-subscribe-channel> to send Message to the tcp-endpoint and into ws-response channel.
Explain, please, a bit more your use-case
P.S. tcp-samples: https://github.com/SpringSource/spri...basic/tcp-amqp
Nov 29th, 2012, 10:08 AM
You are correct. I got to thinking about it more and it looks like the tcp_outbound_gateway is what I need. Thanks a lot to the forum for your continued support!