Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTTP call with XML returned - how to?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00781339
Message ID:
00781744
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform