原创著作,产权保护 政府、投票、评选、公安、学校、问卷、视频会议专注发展中小企事业 系统报价 | 支付帐号 | 授权查证
    计算机著作版权登记号:2014SR032463 手机:+86-1373066-4304 | QQ:1213920482 欢迎选择智睿软件系统 欢迎选择智睿软件系统
智睿软件系统
asp微信支付接口,如何获取post过来的xml
来源:转载 浏览:4103 次 发布时间:2016-07-08 09:58:52
asp微信支付接口,如何获取post过来的xml,要取得openid值:
Set xmlMap = Server.CreateObject("Scripting.Dictionary")

Dim varCount,varReq,xmldom
varCount = Request.TotalBytes
varReq = Request.BinaryRead(varCount)
Dim content
Dim OpenIdStr
If varCount > 0 And Request.ServerVariables("REQUEST_METHOD") = "POST" Then

Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument")
xmlDoc.load varReq
Set obj =  xmlDoc.selectSingleNode("xml")
For Each node in obj.childnodes
xmlMap.Add node.nodename, node.text
If node.nodename = "OpenId" Then
OpenIdStr = node.text
End If 
Next

End If
【刷新页面】【加入收藏】【打印此文】 【关闭窗口】
上一篇:asp获取逗号分隔的每个内容和数值 下一篇:js校验表单后提交表单的三种方法总结