新买空间上执行xmlhttp.Send(xmlDOC)出错(同样的文件在原服务器上可以)

qpgsd 2005-04-09 09:03:17
我在新网新买的超级经济II型空间在ASP中执行xmlhttp.Send(xmlDOC)时出现错误 '80004005' ,但同样的文件在别的空间上却能正确运行,这是不是因为新网的主机不支持这个功能?

新网服务器是2003的,我自已机器XP与以前空间2000的系统都能正确运行

急盼高手指点!谢谢!

部分源程序如下(8848的支付网关):

Dim url,xmlhttp,dom,node,xmlDOC,SoapRequest
SoapRequest = "<?xml version=" & CHR(34) & "1.0" & CHR(34) & " encoding=" & CHR(34) & "utf-8" & CHR(34) & "?>"& _
"<soap:Envelope xmlns:xsi=" & CHR(34) & "http://www.w3.org/2001/XMLSchema-instance" & CHR(34) & " xmlns:xsd=" & CHR(34) & "http://www.w3.org/2001/XMLSchema" & CHR(34) & " xmlns:soapenc=" & CHR(34) & "http://schemas.xmlsoap.org/soap/encoding/" & CHR(34) & " xmlns:tns=" & CHR(34) & "http://estore.8848.com/" & CHR(34) & " xmlns:types=" & CHR(34) & "http://estore.8848.com/encodedTypes" & CHR(34) & " xmlns:soap=" & CHR(34) & "http://schemas.xmlsoap.org/soap/envelope/" & CHR(34) & " >"& _
" <soap:Body soap:encodingStyle=" & CHR(34) & "http://schemas.xmlsoap.org/soap/encoding/" & CHR(34) & " >"& _
" <tns:PayGatewayEncrypt>"& _
" <sStrFromStore xsi:type=" & CHR(34) & "xsd:string" & CHR(34) & ">" & sEncryStr & "</sStrFromStore>"& _
" <sForward xsi:type=" & CHR(34) & "xsd:string" & CHR(34) & ">" & "SEND" & "</sForward>"& _
" </tns:PayGatewayEncrypt>"& _
" </soap:Body>"& _
"</soap:Envelope>"
url = "http://estore.8848.com/PayGateway.asmx?methodname=PayGatewayEncrypt"
Set xmlDOC =server.CreateObject("MSXML.DOMDocument")
xmlDOC.loadXML(SoapRequest)
Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP.3.0")
xmlhttp.Open "POST",url,false
xmlhttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
xmlhttp.setRequestHeader "SOAPAction", "http://estore.8848.com/PayGatewayEncrypt"
xmlhttp.setRequestHeader "Content-Length",LEN(SoapRequest)
xmlhttp.Send(xmlDOC) '就是执行到这里就出现错误
...全文
192 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
qpgsd 2005-06-17
  • 打赏
  • 举报
回复
可能是服务商问题了吧!
谢谢各位!
孟子E章 2005-06-16
  • 打赏
  • 举报
回复
2003的服务扩展里允许webDev服务,默认是禁止的
qpgsd 2005-06-16
  • 打赏
  • 举报
回复
这问题到现在还没解决。
lostmoon2000 2005-04-13
  • 打赏
  • 举报
回复
www.Wsine.com 中国网讯,我为客户购买的全部是这里的。
qpgsd 2005-04-10
  • 打赏
  • 举报
回复
还想不通的是,如果限制XMLHTTP或者不支持,但为什么执行Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP.3.0")这句时为什么又能通过呢?
qpgsd 2005-04-10
  • 打赏
  • 举报
回复
是send的问题.
只是我在自己机子及以前的空间上没问题,换到新网的空间上就出问题了.不知是不是新网把这功能限制了或者是WIN2003的服务器方式不同
  • 打赏
  • 举报
回复
那就是send的问题了,我想错了

肯肯xmldoc的东东了

要确定了得到了值吧
qpgsd 2005-04-10
  • 打赏
  • 举报
回复
我改成: Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")
可是这样也不行啊
  • 打赏
  • 举报
回复
Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP.3.0")
----》这个版本也许不支持

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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