Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Reading XML from a URL with VBScript

From: "Jesse" <anonymous@-----------.---------.--->
To: NULL
Date: 7/4/2004 9:31:00 PM
Thanks for all your help - i now have it working.  Cheers.

>-----Original Message-----
>Then the server page may be programmed to require client-
certificate, which
>is automatically sent in browser, from the callee. I've 
seen not programmed
>ssl page as such can be retrieved with xmlhttp. However 
xmlhttp has no
>functionality sending client-certificate if server wants 
it. You may want
>severXmlhttp in XML 4.0. I've not tried myself it against 
https. One URL is,
>
>http://www.google.com/groups?hl=en&lr=&ie=UTF-
8&threadm=21bb01c10397%24faf575a0%249ae62ecf%
40tkmsftngxa02&rnum=4&prev=/groups%3Fas_q%3Dserverxmlhttp%
2520https%26safe%3Dimages%26ie%3DUTF-8%26lr%3D%26hl%3Den
>
>"Jesse" <anonymous@d...> wrote in 
message
>news:24f6e01c45fea$bc0d49f0$a401280a@p......
>> 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