快捷搜索:  as  2018  FtCWSyGV  С˵  test  xxx  Ψһ  w3viyKQx

和记娱乐登录_机器人论坛



打开WebService地址 可以看到阐明,必须留意1.1和1.2版本的SOAP的不合地方。一样平常呈现差错都基础在这些地方。

"&_

""&_

""&_

""&_

"1"&_

"2"&_

""&_

""&_

""

Set xmlDOC =Server.CreateObject("MSXML.DOMDocument")

Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")

xmlhtt和记娱乐登录p.Open "POST",url,False

xmlhttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"

xmlhttp.setRequestHeader "Content-Length",LEN(SoapRequest)

xml和记娱乐登录http.setRequestHeader "Host","api.510769.com"

xmlhttp.setRequestHeader "SOAPAction","HTTP://API.510769.COM/AandB"

xmlhttp.Send(SoapRequest)

bOK = xmlDOC.load(xmlhttp.responseXML)

xmlStr = xmlDOC.xml

Set ReStr=xmlDOC.documentElement.selectNodes("//AandBResult")'这便是直接调用

Response.Write(bOK&xmlStr&ReStr(0).text)'bOK为fasle便是掉败了

Set ReStr = Nothing

Set xmlhttp = Nothing

Set xmlDOC = Nothing

%>

代码

%

Dim url = "HTTP://API.510769.COM/Service.asmx"

Dim SoapRequest=""&_

""&_

""&_

"HTTP://API.510769.COM/"">"&_

"1"&_

"2"&_

""&_

""&_

""

Set xmlDOC =Server.CreateObject("MSXML.DOMDocument")

Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")

xmlhttp.Open "POST",url,False

xmlhttp.setRequestHeader "Content-Type", "text/xml和记娱乐登录; charset=utf-8"

xmlht和记娱乐登录tp.setRequestHeader "Content-Length",LEN(SoapRequest)

xmlhttp.setRequestHeader "Host","api.510769.com"

xmlhttp.setRequestHeader "SOAPAction","HTTP://API.510769.COM/AandB"

xmlhttp.Send(SoapRequest)

bOK = xmlDOC.load(xmlhttp和记娱乐登录.responseXML)

xmlStr = xmlDOC.xml

Response.Write(bOK&xmlStr)'bOK为fasle便是掉败了

Set xmlhttp = Nothing

Set xmlDOC = Nothing

%>

您可能还会对下面的文章感兴趣: