Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Temperature by ZipCode - Web Service Code needed

Status
Not open for further replies.

mattfarley

IS-IT--Management
Dec 11, 2002
25
0
0
US
I need to get some code that will simply output the local temperature of a constant zip code using web services. The language can be either PerlScript or vbscript, or even Javascript. I already have one working, but it's not a production service (just a demo server), so it cannot be counted on for reliability. The code is:

<%@ LANGUAGE = PerlScript %>
<%
#!/usr/bin/perl
use SOAP::Lite;
my $temp = SOAP::Lite
-> service(' -> getTemp('95828') . &quot;f / &quot;;
print $temp;
%>

And my output is &quot;78.0f&quot; or whatever. Well xmethods.net's stability isn't too good. If anyone could show me some code that would accomplish the same thing in vbscript/perlscript/javascript using a different server, I'd be very grateful. Here are two web services available for getting temperature readings:


I will have the temperature showing on the front page of my new site: in the menu bar at the top.

Thanks for all help!
-Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top