调用web service后返回的数据如下:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:checkPwdResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://bll.custserviceinfmgr.bsn.ztesoft.com">
<checkPwdReturn href="#id0"/>
</ns1:checkPwdResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:CheckPwdRespDto" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://commudto.custserviceinfmgr.bsn.ztesoft.com">
<action xsi:type="soapenc:string">CheckPwd</action>
<errdescription xsi:type="soapenc:string"></errdescription>
<phone xsi:type="soapenc:string">60000001</phone>
<result href="#id1"/>
</multiRef>
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">0</multiRef>
</soapenv:Body>
</soapenv:Envelope>用什么工具可以对其转换为:
<?xml version="1.0" encoding="iso-8859-1"?>
<message>
<action>CheckPwd</action>
<phone>XXXXXXX</phone>
<result>0</result>
<errdescription>描述信息</errdescription >
</message>还是要自己进行转化呢?
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:checkPwdResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://bll.custserviceinfmgr.bsn.ztesoft.com">
<checkPwdReturn href="#id0"/>
</ns1:checkPwdResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:CheckPwdRespDto" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://commudto.custserviceinfmgr.bsn.ztesoft.com">
<action xsi:type="soapenc:string">CheckPwd</action>
<errdescription xsi:type="soapenc:string"></errdescription>
<phone xsi:type="soapenc:string">60000001</phone>
<result href="#id1"/>
</multiRef>
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">0</multiRef>
</soapenv:Body>
</soapenv:Envelope>用什么工具可以对其转换为:
<?xml version="1.0" encoding="iso-8859-1"?>
<message>
<action>CheckPwd</action>
<phone>XXXXXXX</phone>
<result>0</result>
<errdescription>描述信息</errdescription >
</message>还是要自己进行转化呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货