responseXML问题
在客户端用JS脚本创建Microsoft.XMLHTTP用 httpxml.responseXML是没问题的.
但是在ASP服务端用
<%
...
Set httpxml = Server.CreateObject("Microsoft.XMLHTTP")
httpxml.Open "POST", "XXX/xxx.xml", False, "", ""
httpxml.Send()
...
%>
然后用
strResult = httpxml.responseXML
时说 "对象不支持此属性或方法"原因就是这个responseXML的问题.
如果用strResult = httpxml.responseXML.xml
则strResult 是空的.为什么在服务端responseXML有这问题呢.
说明: 我用httpxml.getAllResponseHeaders() 输出HTTP头的Content-Type 已经是 text/xml 的了.
那位还知道需要其他设置或什么的吗?