Hello All,
I'd like to user Gateway Webservice and chain together, use Gateway for sync call, Webservice to be client of WS, Chain to process(convert transform so..) the result.
Gateway
Code:<int:gateway id="gw" default-request-channel="someChannel" service-interface="foo.MyInterface"/>
Code:... @Autowired private MyInterface gw; ... String response = gw.sendAndReceive(request); ...
Code:public interface MyInterface { String sendAndReceive(String request);
Webservice
How to process the reply by chain and put all code together?Code:<chain input-channel="fahrenheitChannel" output-channel="celsiusChannel"> <ws:header-enricher> <ws:soap-action value="http://tempuri.org/CelsiusToFahrenheit" /> </ws:header-enricher> <ws:outbound-gateway uri="http://www.w3schools.com/webservices/tempconvert.asmx" /> </chain>
thank


Reply With Quote
Don't warry! And change your mind.
