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>
<?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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28