Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Reading XML from a URL with VBScript

From: "Jesse" <anonymous@-----------.---------.--->
To: NULL
Date: 7/1/2004 9:12:00 PM
I gave that a go and now the code attempts for a while and 
then returns the following error in a messagebox.

<?xml version="1.0"?>
<error>
	<type>java.sql.SQLException</type>
	<message>Timeout: Unable to get connection 
Frame</message>
</error>

What do the send and open methods do?

Jesse


>-----Original Message-----
>Try xmlhttp instead of DOM. I've not yet tried myself 
against https if I
>recall correctly.
>
>set xh=createobject("msxml2.xmlhttp")
>xh.open "get", URL, false
>xh.send
>msgbox xh.responsexml.xml
>
>"Jesse" <anonymous@d...> wrote in 
message
>news:246f801c45fdf$a83fb670$a601280a@p......
>> Ok thanks, that works for the test xml file i have been
>> trying to get to work on the webserver here but there is
>> another xml url on a https site which i need to get
>> information from that is still not working.  This time
>> however the script brings up no error message.  If i use
>> the url in my browser for the https site i am using in 
the
>> code, i can see the XML file contents in the browser.
>>
>> /************************
>> Code Snippit
>> *************************/
>> //url = the https site with various login components
>>
>> Set theXML = CreateObject("MICROSOFT.XMLDOM")
>> theXML.async=false
>> theXML.load(url)
>>
>> if theXML.parseError.errorCode = 0 Then
>>
>> msgbox(theXML.documentElement.firstChild.text)
>>
>> end if
>>
>> set theXML = nothing
>>
>> /******************
>> End Snippit
>> ******************/
>>
>> Jesse
>>
>>
>> >-----Original Message-----
>> >Then one thing I can imagine is async property. Do 
before
>> loading,
>> >
>> >xmldoc.async=false
>> >
>> >If you still have a problem, show us your code please.
>> >
>> >"Jesse" <anonymous@d...> wrote in
>> message
>> >news:24a9701c45fda$cb0295b0$a301280a@p......
>> >> Thanks for the quick reply.
>> >>
>> >> It runs as a stand alone VBScript (not using ASP) 
and i
>> am
>> >> manually running it from my computer (not the web
>> server).
>> >>
>> >>
>> >> >-----Original Message-----
>> >> >Where does your script run, ASP or something?
>> >> >
>> >> >"Jesse" <anonymous@d...> wrote 
in
>> >> message
>> >> >news:24a8601c45fd8$674bebe0$a301280a@p......
>> >> >> Hi All,
>> >> >>
>> >> >> I have a question regarding reading XML from a URL
>> using
>> >> >> VBScript.  I am able to read an xml file that is
>> stored
>> >> >> locally with VBScript but when i try and access 
the
>> same
>> >> >> file through a url (via a webserver)instead of a
>> direct
>> >> >> local path, nothing is read.  I get the 
error "Object
>> >> >> Required" on the line:
>> >> >>
>> >> >> msgbox(theXML.documentElement.firstChild.text)
>> >> >>
>> >> >> If i type the url in my browser it brings up the
>> >> contents
>> >> >> of the file in the browser window.
>> >> >>
>> >> >> I am new to XML so any information on the subject
>> would
>> >> be
>> >> >> appreciated.
>> >> >>
>> >> >> Thanks,
>> >> >> Jesse
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >.
>> >> >
>> >
>> >
>> >.
>> >
>
>
>.
>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent