asp 接收别的地方post过来的xml

a276181298 2011-04-21 05:29:14

RecvSMS
<?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>
<RecvSMS soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<caller xsi:type="xsd:string">18938652200</caller>
<time xsi:type="xsd:string">20101126113634</time>
<cont xsi:type="xsd:string">x+u72LXno6zQu9C7o6E=</cont>
<ucNum xsi:type="xsd:string">075585578185</ucNum>
</RecvSMS>
<RecvSMS soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<caller xsi:type="xsd:string">18938652255</caller>
<time xsi:type="xsd:string">20101126113638</time>
<cont xsi:type="xsd:string">x+u72LXno6zQu9C7o6E=</cont>
<ucNum xsi:type="xsd:string">075585578188</ucNum>
</RecvSMS>
</soapenv:Body>
</soapenv:Envelope>
post过来是这种格式的.


麻烦给鄙人个例子.
...全文
70 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
mocom 2011-04-21
  • 打赏
  • 举报
回复
dim xml
set xml = server.createobject("msxml2.domdocument")
xml.async = false
xml.load request

put_file_content xml.xml

sub put_file_content(byval str)
'将str写入一个txt文件,当远程服务器post数据到你的服务器时就可以看到该文件了
end sub
yuzhouer1122 2011-04-21
  • 打赏
  • 举报
回复
去看看Json就明白了。

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧