Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Real time weather on a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01211915
Message ID:
01214123
Views:
13
Hi Timothy, I'm sorry for the delay, the setup is pretty straightfoward
in most situations, here an example of a webservice that gives you
the location for a specific ZipCode; (could not find any free one
that would work that gives you weather); register the web service
in the Task Pane in Fox and that will let you see the methods available
from the service, in this case there is only one. If you can not find
a weather web service at least you can use ShellExecute to navigate to
a page; let's say MSNBC.COM, dump the page to a text file and read it from there.

Good luck.
LOCAL loNotification AS "MSSOAP.SoapClient30"
* Do not remove or alter following line. It is used to support IntelliSense for your XML Web service.
*__VFPWSDef__: lonotification = http://www.webservicemart.com/uszip.asmx?wsdl notification , notificationSoap

lcZip = "33029"
loNotification = CREATEOBJECT("MSSOAP.SoapClient30")

leRtnVal = loNotification.MSSoapInit("http://www.webservicemart.com/uszip.asmx?wsdl")


leResult = loNotification.ValidateZip(lcZip)

XMLTOCURSOR(leResult,'ZIP')

SELECT ZIP
BROWSE
>I guess calling the web service is what I'm after, the how to. Does this require alot of setup?
>
>
>>Hi Timothy, I think the easiest way is to call a Web Service,
>>try
>>http://www.ejse.com/WeatherService/Service.asmx
>>or
>>http://wsfinder.jot.com/WikiHome
>>
>>Also, you can try to scrape it from msnbc, google, etc...
>>
>>Good luck
>>
>>
>>>Can someone point me to the way to have a control like a label display time/weather from an internet connection? I assume it involves a com server web connection? Thanks
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform