mattfarley
IS-IT--Management
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') . "f / ";
print $temp;
%>
And my output is "78.0f" 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
<%@ LANGUAGE = PerlScript %>
<%
#!/usr/bin/perl
use SOAP::Lite;
my $temp = SOAP::Lite
-> service(' -> getTemp('95828') . "f / ";
print $temp;
%>
And my output is "78.0f" 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