又一问:如何用load()在服务器端加载一个由asp形成的XML文档

为什么加载由asp在服务器端生成的xml文档,IIS会没有响应,最近提示用户连接过多,服务器无法处理呢,代码如下:

方法1:
--------------------------

1   
2Dim xmldoc   
3Set xmldoc = CreateObject("MSXML2.DOMDocument")   
4xmldoc.async = false   
5xmldoc.setProperty "ServerHTTPRequest", true   
6xmldoc.load "http://chenjf/webcurr/xmldata/tem0101.asp"   
7response.write xmldoc.xml   

方法2:
----------------------------------

1   
2Dim oSource ' our XML document   
3Dim xmlhttp   
4Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")   
5xmlhttp.open "GET","http://chenjf/webcurr/xmldata/tem0101.asp",false   
6xmlhttp.send   
7Set oSource = xmlhttp.ResponseXML   
8Response.Write oSource.xml   
Published At
Categories with Web编程
Tagged with
comments powered by Disqus