【发布时间】:2018-05-16 14:24:48
【问题描述】:
请您帮忙创建一个包含 WS-A 参数的请求 从: 到: 等等
<int:chain input-channel="msoapInChannel" output-channel="justLog">
<ws:header-enricher >
<ws:soap-action value="http://yeah.com/Txns/port/sPortType/getesRequest"/>
</ws:header-enricher>
<ws:outbound-gateway uri="http://g.tst.b.l/wsb/router"/>
</int:chain>
我想将 wsa:From wsa:To 添加到请求中
错误:1100 表示消息寻址属性的标头不是 展示。 (原因:所需的头元素 wsa:From 不存在)
如何在基于 xml 的配置中做到这一点?
编辑: 我们创建请求并使用 JMS 队列。请求如下所示
String requestXml =
"<getnNames xmlns=\"http://b.do.com/DTositeTxns/port\">" +
"<RequestControl xmlns=\"http://www.im.com/mm/schema\">" +
"<requestID>123896</requestID>" +
"<DLControl>" +
"<requesterName>LW</requesterName>" +
"<requesterLocale>RTnl</requesterLocale>" +
"</DLControl>" +
"</RequestControl>" +
"<InquiryParam xmlns=\"http://www.im.com/mm/schema\">" +
"<tcrmParam name=\"identiftionNumber\">" + bn + "</tcrmParam>" +
"<tcrmParam name=\"PartficationType\">1000001</tcrmParam>" +
"<tcrmParam name=\"Filter\">ACTIVE</tcrmParam>" +
"</InquiryParam>" +
"</getnNames>" ;
TextMessage outMessage = session.createTextMessage(requestXml);
并发送到队列。 如果我使用soapenv:Body,则该请求不被接受为有效。所以我的要求只是正文中的标签。不知道如何添加标题位。
请指出一个示例,该示例使用 wsa:To 和 wsa:From 创建请求,与 To 相关,Fault to 等
【问题讨论】:
标签: spring spring-integration mq