Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Parseing XML in ASP Page [Thread Next] Re: Parseing XML in ASP PageTo: NULL Date: 11/1/2005 9:40:00 PM it looks like you're using VBScript inside the ASP.
as to the whether it's correct, can't help you unless I could look at
some examples (do they provide any? post a link if they do).
for instance Google's search API utilizes XML, and they provide
examples of the code.
I believe you send the document, so you would load the XML string into
a MS XML document, then send that document.
it returns text which I load into MS XML and save as XML file.
(this is a language similar to VBScript)
#include "C:\z\Inc\XMLTools.wbt"
; here's a quick "for instance", you can send XML files to Google's
Search
; API to get back data...
xfile = "J:\Temp Folders\GoogleTemp\googleapi\soap-samples\Copy of
doGoogleSearch.xml"
;xfile = "J:\Temp
Folders\GoogleTemp\googleapi\soap-samples\GoogleSearch No XML
Declaration.xml"
xmldoc = objectcreate("Msxml2.DOMDocument.4.0")
xmldoc.async = @false
xmldoc.load(xfile)
xmlhttp = objectcreate("Msxml2.XMLHTTP.4.0")
xmlhttp.Open("POST", "http://api.google.com/search/beta2", @false)
xmlhttp.Send(xmldoc)
message("Debug", xmlhttp.responseText)
GoogleResponseDoc = objectcreate("Msxml2.DOMDocument.4.0")
GoogleResponseDoc.async = @false
GoogleResponseDoc.loadXML(ParseXML(xmlhttp.responseText))
rfile = "J:\Temp Folders\GoogleTemp\googleapi\soap-samples\Winbatch
Test 2 Response.xml"
GoogleResponseDoc.save(rfile)
exit
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
