Getting large response from Http Outbound Gateway in Spring Integration

江枫思渺然 提交于 2019-12-11 00:52:23

问题


I am trying to get response from Http Outbound Gateway. I have used expected-response-type="java.lang.String". I am able to get data, data is string representation of XML, but data is large so I am getting only part of it, I am not able to find a way to get full data.

In documentation they have given example to use Multipart with Http Inbound Gateway their is no reference how to use Multipart in Http Outbound Gateway.

I also came to know that http outbound uses RestTemplate to make calls but I was not able to figure out how can I inject my own RestTemplate in Http Outbound Gateway.

Is their any way in XML configuration where I can insert some configuration and I may get full response in Http Outbound Gateway.

just for refrence here is my Http Outbound Gateway:

<int-http:outbound-gateway request-channel="requestGatewayChannel"
        url="${myurl}" http-method="GET" expected-response-type="java.lang.String"  
            </int-http:outbound-gateway>

来源:https://stackoverflow.com/questions/35241595/getting-large-response-from-http-outbound-gateway-in-spring-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!