NOAA Weather Web Service

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default NOAA Weather Web Service

    I'm having a tough time getting the NDFDgen method to work for the NOAA web
    serivice. Here is the documentation on the service itself:

    [url]http://weather.gov/xml/[/url]

    The calling code is below:


    <cfinvoke
    method="NDFDgen"
    webservice="http://weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl"
    latitude="38.99"
    longitude="-77.99"
    product="glance"
    startTime="2004-01-01T00:00:00"
    endTime="2009-07-29T00:00:00"
    weatherParameters="maxt = TRUE"
    Returnvariable="foo">

    </cfinvoke>
    <cfoutput>#foo#</cfoutput>

    kaypro4 Guest

  2. Similar Questions and Discussions

    1. NOAA Weather Web Service in Flash
      Hi, i am really new to Flash and am enjoying the learning process but i have a question which i cant figure out. I live in Colorado Springs and...
    2. weather web service
      hi there, I was wondering how I can invoke some certain information about a certain city ( Mexico City ) using a WebService, I was trying with this...
    3. Consume NOAA Web Service
      I'm using the code below to attempt to consume the NOAA weather service and am getting the following error: Web service operation "NDFDgen" with...
    4. free Weather web service?
      somebody knows good weather web service available ?
    5. Web Service to get the weather forecast
      anybody Knows where can I find Web Service to get the weather forecast for all Worldwide Countries thanks in advance --
  3. #2

    Default Re: NOAA Weather Web Service

    I had some challenges with that myself, but the attached code does seem to work
    for me. I'm not sure if the CFINVOKEARGUMENT tag is required, but it does work.

    -Paul



    <CFINVOKE METHOD="NDFDgenByDay" RETURNVARIABLE="nwsdata"
    WEBSERVICE="http://www.nws.noaa.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">
    <CFINVOKEARGUMENT NAME="Latitude" VALUE="40.1805">
    <CFINVOKEARGUMENT NAME="Longitude" VALUE="-77.2345">
    <CFINVOKEARGUMENT NAME="numDays" VALUE="7">
    <CFINVOKEARGUMENT NAME="Format" VALUE="12 hourly">
    <CFINVOKEARGUMENT NAME="startdate" VALUE="#DateFormat(Now(),"yyyy-mm-dd")#">
    </CFINVOKE>

    <CFSET mydoc = XMLPARSE(nwsdata)>

    dempster Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139