我在WSO2中公开了一个http服务。服务地址为"http://172.30.60.73:8888/XMPPService/recieveMsg?param=yes"
,响应为"notifyresult=000000"
。但
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><axis2ns7:binary xmlns:axis2ns7="http://ws.apache.org/commons/ns/payload">bm90aWZ5cmVzdWx0PTAwMDAwMDENCg==</axis2ns7:binary></soapenv:Body></soapenv:Envelope>
我使用脚本调解器:
var symbol=mc.getPayloadXML().toString();
var response=symbol.substring(13,symbol.length)
mc.setPayloadXML(<p:createGroupResponse xmlns:p="http://iag.sdp.coship.com/xmpp/"><notifyresult>{ response }</notifyresult></p:createGroupResponse>);
客户端是:
<p:createGroupResponse xmlns:p="http://iag.sdp.coship.com/xmpp/">
<notifyresult>Wx0PTAwMDAwMDENCg==</notifyresult>
</p:createGroupResponse>
似乎响应是二进制的。如何将此回复转换为"notifyresult=000000"
。有人可以帮帮我吗?非常感谢你。
答案 0 :(得分:0)
默认情况下,ESB在版本4.6.0中使用passthrough传输。在passthrough中我们不构建消息。可以切换到NIO传输并检查吗?编辑axis2.xml,传输侦听器,NIO传输的发件人