Hi, i'm trying to run an .asp page to get an xml file off a server.
I need to know what object to create. My page just runs till timeout...it
bombs on the httpxml.send command. This is the code I have:
set httpxml = Server.CreateOb ject("Msxml2.XM LHTTP.3.0")
httpxml.open "GET", "http://www.txdps.state .tx.us/mpch/sb1063.xml", false
' get the requested XML data from the remote location
' change the URL as per your feed.
httpxml.send
' save the XML in objXML as XML
set XML = httpxml.respons eXML
'Load the XSL
set xsl = Server.CreateOb ject("Microsoft .XMLDOM")
xsl.async = false
xsl.load(Server .MapPath("txdot .xsl"))
if (objXSL.readySt ate = 4 AND objXSL.parseErr or.errorCode = 0) then
Response.Write( xml.transformNo de(xsl))
else
'if an error occurs, report it
Response.Write "Error: " & objXSL.parseErr or.reason & "<br> URL:" &
objXSL.url
end if
set httpxml=nothing
set xml=nothing
set xsl=nothing
Do I need to install something???
i am running xp pro
I need to know what object to create. My page just runs till timeout...it
bombs on the httpxml.send command. This is the code I have:
set httpxml = Server.CreateOb ject("Msxml2.XM LHTTP.3.0")
httpxml.open "GET", "http://www.txdps.state .tx.us/mpch/sb1063.xml", false
' get the requested XML data from the remote location
' change the URL as per your feed.
httpxml.send
' save the XML in objXML as XML
set XML = httpxml.respons eXML
'Load the XSL
set xsl = Server.CreateOb ject("Microsoft .XMLDOM")
xsl.async = false
xsl.load(Server .MapPath("txdot .xsl"))
if (objXSL.readySt ate = 4 AND objXSL.parseErr or.errorCode = 0) then
Response.Write( xml.transformNo de(xsl))
else
'if an error occurs, report it
Response.Write "Error: " & objXSL.parseErr or.reason & "<br> URL:" &
objXSL.url
end if
set httpxml=nothing
set xml=nothing
set xsl=nothing
Do I need to install something???
i am running xp pro
Comment