https://jira.springsource.org/browse/INT-2570 explains the scenario in case of Get call.
thats is
<int-http:outbound-gateway url="{url}" request-channel="vmwChannel" reply-channel="replyChannel"
expected-response-type="java.lang.String" http-method="GET">
<int-http:uri-variable name="url" expression="payload" encode="false"/>
</int-http:outbound-gateway>
How do we handle when we have a Post call with a request body and a dynamic url
If i try putting both(string url , object ) in the payload it gives me an error - Cannot add 2 objects in payload.
I also read some where I can add the dynamic url into the header. But how to add values in header when I am using Spring integration and NOT USING Rest Template object
Please suggest how do I handle Post calls


Reply With Quote