Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTTP call with XML returned - how to?
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00781339
Message ID:
00781744
Views:
14
Hi James,

Please consider the following code that retrieves an XML document from SQL Server 2000 through HTTP (by the configuration of the IIS virtual directory and SQLXML Wev release). It uses the XMLHTTP class from MSXML library.
LOCAL loXMLHTTP as "MSXML2.XMLHTTP"

loXMLHTTP = CREATEOBJECT("MSXML2.XMLHTTP")
loXMLHTTP.open("GET", ;
               "http://localhost/sql?sql=select+*+from+Customers+for+xml+auto&root=Teste", ;
               .F.)
loXMLHTTP.send()

MESSAGEBOX(loXMLHTTP.responseXML.Xml)

loXMLHTTP = null
               
HTH
-----
Fabio Vazquez
http://www.fabiovazquez.com
Previous
Reply
Map
View

Click here to load this message in the networking platform