Has anyone had luck access in the US National Weather Service?  I have
tried this code (some of the sloppiness here is trying to find the
error):

<cfset parameters = StructNew() />
<cfset parameters.Latitude = "38.9936" />
<cfset parameters.Longitude = "-77.0224" />
<cfset parameters.StartTime = "2004-01-01T00:00:00" />
<cfset parameters.Endtime = "2005-01-01T00:00:00" />
<cfset parameters.Product = "glance" />
<cfset weatherParameters = StructNew() />
<cfset weatherParameters.maxt = "true" />
<cfset weatherParameters.mint = "true" />
<cfset weatherParameters.temp = "true" />
<cfset weatherParameters.dew = "true" />
<cfset weatherParameters.pop12 = "true" />
<cfset weatherParameters.qpf = "true" />
<cfset weatherParameters.snow = "true" />
<cfset weatherParameters.sky = "true" />
<cfset weatherParameters.wspd = "true" />
<cfset weatherParameters.wdir = "true" />
<cfset weatherParameters.wx = "true" />
<cfset weatherParameters.icons = "true" />
<cfset weatherParameters.waveh = "true" />
<cfset parameters.Parameters = "#weatherParameters#" />

<cfscript>
    ws = CreateObject("webservice",
"http://www.nws.noaa.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl";);
        aString = ws.NDFDgen(parameters);
</cfscript>


<cfdump var="#aString#" />

And get this error:

Web service operation "NDFDgen" with parameters
{{LATITUDE={38.9936},LONGITUDE={-77.0224},PARAMETERS={{WAVEH={true},TEMP
={true},WDIR={true},SNOW={true},WX={true},ICONS={true},DEW={true},POP12=
{true},MINT={true},SKY={true},WSPD={true},MAXT={true},QPF={true},}},ENDT
IME={2005-01-01T00:00:00},PRODUCT={glance},STARTTIME={2004-01-01T00:00:0
0},}} could not be found. 
The error occurred on line 30. 

Line 30 is my call of the web service function.  I have spoken with the
NWS web master and was told that the problem is with ColdFusion's http
calling method.  The NWS uses Akami as the backbone and requires HTTP
1.1 calls.  I think this is BS, but still need help.

Russel Madere
Webmaster
504.832.9835
SunShine Pages by EATEL
www.sunshinepages.com
 

-----Original Message-----
From: Sean Corfield [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 05, 2005 8:00 AM
To: CF-Talk
Subject: Re: CF-Tag Weather for UK (London)?

On Wed,  5 Jan 2005 06:45:06 -0500, Stuart Kidd <[EMAIL PROTECTED]>
wrote:
> I've been searching around for a weather tag to pull London (UK)
weather but seem to just find streams of US tags instead.  Does anyone
know of a good UK one?
> 
> It would good to know what the forecast for the day is (centigrade)
and what the actual temperature is now (centigrade).

CFMX? Use the global weather web service.

<cfset ws =
createObject("webservice","http://live.capescience.com/wsdl/GlobalWeathe
r.wsdl")
/>
<cfset stations = "LHR,LGW,DUB" />
<cfloop list="#stations#" index="station">
<cfset report = ws.getWeatherReport(station) />
        <cfoutput>#station#</cfoutput>: <cfdump var="#report#"
expand="false" />
        Ambient temperature: <cfdump var="#report.temperature.ambient#"
/>
        Precipitation: <cfdump var="#report.precipitation#" />
        Extremes: <cfdump var="#report.extremes#" />
        Visibility: <cfdump var="#report.visibility.distance#" />
        Wind: <cfdump var="#report.wind.prevailing_speed#" />
</cfloop>
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 5 invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Protect your mail server with built in anti-virus protection. It's not only 
good for you, it's good for everybody.
http://www.houseoffusion.com/banners/view.cfm?bannerid=39

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189383
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to