Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using XMLHTTP to access Web Services
Message
 
 
To
17/06/2002 12:54:11
Xiaodong Yan
Better Database Solutions
Spring, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00669312
Message ID:
00669412
Views:
33
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform