Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading XML over HTTPS into DOM

Status
Not open for further replies.

Zippeh

Programmer
Sep 24, 2002
56
GB
Hi there :)

I'm trying to read a remote XML file over HTTPS into the DOM in my VBScript. Here is what I have so far...

Code:
'Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
Set objXMLDoc = CreateObject("Msxml2.DomDocument")
objXMLDoc.async = False
objXMLDoc.setProperty "ServerHTTPRequest", true
objXMLDoc.load(strWebAddress)

Set Root = objXMLDoc.documentElement

It dies when it gets to the Set Root line. I do have more code but I think this is the only bit that goes wrong.

Any ideas??
 
Sorry my mistake, the problem with the code is at the bottom of this segment:

Code:
'Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
Set objXMLDoc = CreateObject("Msxml2.DomDocument")
objXMLDoc.async = False
objXMLDoc.setProperty "ServerHTTPRequest", true
objXMLDoc.load(strWebAddress)

Set Root = objXMLDoc.documentElement

For Each x In objXMLDoc.documentElement.childNodes
 
if it is on the server, then
[tt]>Set objXMLDoc = CreateObject("Msxml2.DomDocument")
Set objXMLDoc = [blue]Server.[/blue]CreateObject("Msxml2.DomDocument")
[/tt]
 
I think I've found the problem! The certificate on the remote server has expired! So I'll contact them and ask them to sort it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top