Spring integration 如何在http:outbound gateway中配置post参数

Spring integration 如何在http:outbound gateway中配置post参数,spring-integration,Spring Integration,我们有一个案例,使用http post调用从客户系统检索订单,post请求包括用户名和密码,然后我们可以得到订单内容响应 我们希望每10分钟呼叫一次客户服务,然后在我们的service activator中处理响应,但是,我不知道如何在spring integration configuration中将用户名和密码配置为post参数,有人可以帮助吗 我的当前配置 <int:inbound-channel-adapter channel="inChannel" expression="'

我们有一个案例,使用http post调用从客户系统检索订单,post请求包括用户名和密码,然后我们可以得到订单内容响应

我们希望每10分钟呼叫一次客户服务,然后在我们的service activator中处理响应,但是,我不知道如何在spring integration configuration中将用户名和密码配置为post参数,有人可以帮助吗

我的当前配置

  <int:inbound-channel-adapter channel="inChannel" expression="''">
        <int:poller fixed-delay="60000"></int:poller>
    </int:inbound-channel-adapter>

    <int:channel id="inChannel"/>
    <int:channel id="outChannel"/>
    <http:outbound-gateway
            url="http://****/vendorServer/order"
            request-channel="inChannel" reply-channel="outChannel" http-method="GET" expected-response-type="java.lang.String">
</http:outbound-gateway>

    <int:service-activator input-channel="outChannel" ref="orderService"/>


如何将用户名和密码配置为上述配置中的post参数?

HTTP post方法意味着
正文。在Spring集成中提供车身的有机方法是消息
有效载荷
。因此,您应该考虑在发送到<代码> HTTP:出站网关< /COD> < /P>之前,生成具有必需属性的<代码>图>代码>有效载荷。