+ -
当前位置:首页 → 问答吧 → SOAP

SOAP

时间:2011-12-13

来源:互联网

该如何改变 SOAP 消息命名空间的前缀 
  <?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>
<login xmlns="http://service.user.ehealth/">
<productNo xmlns="">00000</productNo>
<userName xmlns="">[email protected]</userName>
<userPwd xmlns="">0000</userPwd>
<userType xmlns="">0</userType>
</login>
</soapenv:Body>
  </soapenv:Envelope>

这种SOAP 消息格式改成 
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<login xmlns="http://service.user.ehealth">
<productNo>10000</productNo><userName>11111</userName><userPwd>0000</userPwd>
<userType>0</userType>
</login>
</soap:Body>
</soap:Envelope>
其实就是 命名空间的前缀改成 <soap:Envelope>

   

作者: yan20124   发布时间: 2011-12-13

大家帮帮忙,这个问题苦恼了我很久了

作者: yan20124   发布时间: 2011-12-13

怎么没有人吗?

作者: yan20124   发布时间: 2011-12-13