General information
Title:
Using XMLHTTP to access Web Services
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only