我在 WSO2 中公开了一个 http 服务。服务地址是"http://172.30.60.73:8888/XMPPService/recieveMsg?param=yes"
,响应是"notifyresult=000000"
。但是
在 WSO2 中,日志输出为:<?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"
. 任何人都可以帮助我吗?非常感谢。