I need to make a POST call to the REST service and get the returned data (all with JSON). I have an outgoing gateway with my response channel as a chain, and the chain has one transformer.
<int-http:outbound-gateway url="#{appProperties['rootUrl']}#{appProperties['myMethod']}" request-channel="myRequestChannel" reply-channel="myResponseChannel" > </int-http:outbound-gateway> <int:channel id="myResponseChannel"/> <int:chain input-channel="myResponseChannel"> <int:transformer ref="genericResponseTransformer"/> </int:chain>
However, when I debug a transformer, the payload that I receive is just an object of HttpStatus.
Maybe I'm doing something wrong? Any help would be greatly appreciated. Thanks!
source share