Payload数据到Custom Http-Client在Spring-XD中给出了错误

时间:2015-12-07 23:08:35

标签: spring-integration spring-xd

在Spring XD [使用Spring Integration http-outbound网关创建]中自定义http-client的有效载荷数据给出错误" ResourceAccessException:将请求主体写入服务器" ,Data是大json字符串,我们可以通过POSTMAN / SOAP UI测试json字符串,如果我们减少JSON数据并尝试Post in Payload它工作并给我们错误的请求,因为数据被修剪,所以有效负载需要转换为字节[]? 以下是配置 -

 <int-http:outbound-gateway id='batch-http'  header-mapper="headerMapper"
      request-channel='toHttp' url-expression="${url}"  http-method="${httpMethod}"
                               expected-response-type='java.lang.String' charset='${charset}'
                               reply-timeout='${replyTimeout}' reply-channel='output'>
    </int-http:outbound-gateway>

由于 学习者

0 个答案:

没有答案