Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sever 2003 XML using classic ASP
Message
Information générale
Forum:
ASP.NET
Catégorie:
Installation et Configuration
Titre:
Sever 2003 XML using classic ASP
Divers
Thread ID:
00820393
Message ID:
00820393
Vues:
67
I hope this is the proper place to put this, but there is no specfic Server 2003 or classic asp section.

Im researching Windows Server 2003. Basically, making sure all our existing classic asp stuff will work fine. Everything I tested so far has worked, except for some xml capabilities.

The xml object supposedly comes preinstalled, but I downloaded the package from MS and installed it anyway. Now, I can create an xml dom object fine. Ex. set oXMLDoc = server.createobject("Msxml2.DOMDocument") But, when I try to load an xml source from the internet the load method always returns false. And, when I load some xml from a local file, it works fine.

Just to make sure its not the xml source itself I dropped the url in IE and it loaded fine.

Here is the sample code I'm using. Very basic stuff..
<%
dim oXMLDoc
set oXMLDoc = server.createobject("Msxml2.DOMDocument")

response.write("vartype=" & vartype(oXMLDoc) & "<br>")

oXMLDoc.async = false
oXMLDoc.resolveExternals = false

'This works fine
response.write(server.mappath("test.xml") & "<br>")
response.write(oXMLDoc.load(server.mappath("test.xml")))

'This is always returning false
response.write(oXMLDoc.load("http://p.moreover.com/cgi-local/page?c=Top%20stories&o=xml_1"))

%>
Im assuming this is something to do with some security settings in IIS 6. Can someone please help, or at least point me in the right direction. I have been working on this for a few days now and I have exausted all posibilities.

TIA
Eric Stephani
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform