日期:2014-05-16 浏览次数:20848 次
<%
url = "http://211.138.138.42:8080/httpapi.aspx?type=qamount&cpid=test&cppwd=1234567"
Set oHttp = CreateObject("Msxml2.ServerXMLHTTP")
oHttp.Open "GET", url, False
oHttp.Send
xml = oHttp.responseText
Set oHttp = Nothing
Set oDoc = CreateObject("Msxml2.DomDocument")
With oDoc
.async = False
.validateOnParse = False
.preserveWhiteSpace = False
.resolveExternals = False
.loadXML xml
If .parseError.errorCode <> 0 Then
sErrMsg = .parseError.errorCode & "
------解决方案--------------------
" &_
.parseError.srcText & "
------解决方案--------------------
" & .parseError.reason
Set oDoc = Nothing
Response.Write sErrMsg
Response.End
End If
Set oNode = .selectSingleNode("//response")
If Not oNode Is Nothing Then
Response.Write oNode.text
End If
Set oNode = Nothing
End With
Set oDoc = Nothing
%>