Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using XMLHTTP to access Web Services
Message
 
 
À
17/06/2002 12:54:11
Xiaodong Yan
Better Database Solutions
Spring, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00669312
Message ID:
00669412
Vues:
32
The XMLHTTP object caches the results. To solve this problem, you can added a timestamp variable to the querystring which ensures that the URL is unique, and so it doesn't cache.
LOHTTP.OPEN('GET', ;
"http://www.alethea.net/webservices/LocalTime.asmx/LocalTimeByZipCode?ZipCode=77379" + ;
"&TimeStamp=" + TTOC(DATETIME(),1) ,.F.)
>Hi,
>
>Just tried to get datetime from a "LocalTime" web services. I always get current time from the 1st run after a fresh start of VFP6. But, I am not able to get updated time if I re-run the same codes.
>
>Something need to be closed/refreshed?
>
>~Sheldon
>
>
>LOHTTP=CREATEOBJECT('Microsoft.XMLHTTP')
>LOHTTP.OPEN('GET','http://www.alethea.net/webservices/LocalTime.asmx/LocalTimeByZipCode?ZipCode=77379',.F.)
>LOHTTP.send()
>oSelection=LOHTTP.responseXML.selectnodes("//string")
>lDatetime=oSelection.peekNode()
>? lDatetime.text
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform