我将服务端点作为WSO2 esb的输入SOAP请求,基于此需要将有效负载数据发送到该端点并响应到客户端。请建议如何向该端点发送有效负载。我试过头球调停人,但没有运气。下面是SOAP请求,它在属性元素下具有服务端点引用。
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Body> <resources> <resource><properties> <property name="location" value="http://localhost:8280/services/echo.echoHttpSoap11Endpoint"/> </properties> </resource> </resources> </soapenv:Body> </soapenv:Envelope>
发布于 2013-07-21 20:57:09
首先使用表达式“//properties/properties/@ value”检索地址值。然后设置标头中介者的To地址并发送消息。
<property name="address" expression="//properties/property/@value"/>
<header name="To" expression="get-property('address')"/>
<payloadFactory>
<format>
<p:echoInt xmlns:p="http://echo.services.core.carbon.wso2.org">
<in xmlns="">$1</in>
</p:echoInt>
</format>
<args>
<arg value="1"/>
</args>
</payloadFactory>
<send/>https://stackoverflow.com/questions/17776298
复制相似问题