Free Web Services - Herong's Tutorial Examples
Dr. Herong Yang, Version 1.11

NDFDgenByDay - Response Message Sample

This section provides a request message sample of NDFDgenByDay Web service.

The response message of NDFDgenByDay Web service contains an XML document that provides weather forecast for the given location by days with temperature, probability of Precipitation, sky condition, and hazards condition.

Here is the response message of NDFDgenByDay in SOAP 1.1 returned with the request present in the previous section:

<SOAP-ENV:Envelope 
   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
   xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
   <SOAP-ENV:Body>
      <ns1:NDFDgenByDayResponse 
         xmlns:ns1="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">
         <dwmlByDayOut xsi:type="xsd:string"><![CDATA[<?xml version="1.0"?>
<dwml version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:noNamespaceSchemaLocation=
    "http://www.nws.noaa.gov/forecasts/xml/DWMLgen/schema/DWML.xsd">
  <head>
    <product srsName="WGS 1984" concise-name="dwmlByDay" operational-mode="official">
      <title>NOAA's National Weather Service Forecast by 24 Hour Period</title>
      <field>meteorological</field>
      <category>forecast</category>
      <creation-date refresh-frequency="PT1H">2011-07-24T19:09:22Z</creation-date>
    </product>
    <source>
      <more-information>http://www.nws.noaa.gov/forecasts/xml/</more-information>
      <production-center>Meteorological Development Laboratory
        <sub-center>Product Generation Branch</sub-center>
      </production-center>
      <disclaimer>http://www.nws.noaa.gov/disclaimer.html</disclaimer>
      <credit>http://www.weather.gov/</credit>
      <credit-logo>http://www.weather.gov/images/xml_logo.gif</credit-logo>
      <feedback>http://www.weather.gov/feedback.php</feedback>
    </source>
  </head>
  <data>
    <location>
      <location-key>point1</location-key>
      <point latitude="35.40" longitude="-97.60"/>
    </location>
    <moreWeatherInformation applicable-location="point1">
      http://forecast.weather.gov/MapClick.php?textField1=35.40&amp;textField2=-97.60
    </moreWeatherInformation>
    <time-layout time-coordinate="local" summarization="24hourly">
      <layout-key>k-p24h-n2-1</layout-key>
      <start-valid-time>2011-07-24T06:00:00-05:00</start-valid-time>
      <end-valid-time>2011-07-25T06:00:00-05:00</end-valid-time>
      <start-valid-time>2011-07-25T06:00:00-05:00</start-valid-time>
      <end-valid-time>2011-07-26T06:00:00-05:00</end-valid-time>
    </time-layout>
    <time-layout time-coordinate="local" summarization="12hourly">
      <layout-key>k-p12h-n4-2</layout-key>
      <start-valid-time>2011-07-24T06:00:00-05:00</start-valid-time>
      <end-valid-time>2011-07-24T18:00:00-05:00</end-valid-time>
      <start-valid-time>2011-07-24T18:00:00-05:00</start-valid-time>
      <end-valid-time>2011-07-25T06:00:00-05:00</end-valid-time>
      <start-valid-time>2011-07-25T06:00:00-05:00</start-valid-time>
      <end-valid-time>2011-07-25T18:00:00-05:00</end-valid-time>
      <start-valid-time>2011-07-25T18:00:00-05:00</start-valid-time>
      <end-valid-time>2011-07-26T06:00:00-05:00</end-valid-time>
    </time-layout>
    <time-layout time-coordinate="local" summarization="24hourly">
      <layout-key>k-p42h-n3-3</layout-key>
      <start-valid-time>2011-07-24T14:00:00-05:00</start-valid-time>
      <end-valid-time>2011-07-25T06:00:00-05:00</end-valid-time>
      <start-valid-time>2011-07-25T06:00:00-05:00</start-valid-time>
      <end-valid-time>2011-07-26T06:00:00-05:00</end-valid-time>
      <start-valid-time>2011-07-26T06:00:00-05:00</start-valid-time>
      <end-valid-time>2011-07-26T08:00:00-05:00</end-valid-time>
    </time-layout>
    <parameters applicable-location="point1">
      <temperature type="maximum" units="Fahrenheit" time-layout="k-p24h-n2-1">
        <name>Daily Maximum Temperature</name>
        <value>105</value>
        <value>102</value>
      </temperature>
      <temperature type="minimum" units="Fahrenheit" time-layout="k-p24h-n2-1">
        <name>Daily Minimum Temperature</name>
        <value>77</value>
        <value>77</value>
      </temperature>
      <probability-of-precipitation type="12 hour" units="percent"
        time-layout="k-p12h-n4-2">
        <name>12 Hourly Probability of Precipitation</name>
        <value>11</value>
        <value>13</value>
        <value>13</value>
        <value>6</value>
      </probability-of-precipitation>
      <weather time-layout="k-p24h-n2-1">
        <name>Weather Type, Coverage, and Intensity</name>
        <weather-conditions weather-summary="Hot"/>
        <weather-conditions weather-summary="Hot"/>
      </weather>
      <conditions-icon type="forecast-NWS" time-layout="k-p24h-n2-1">
        <name>Conditions Icons</name>
        <icon-link>http://www.nws.noaa.gov/weather/images/fcicons/hot.jpg</icon-link>
        <icon-link>http://www.nws.noaa.gov/weather/images/fcicons/hot.jpg</icon-link>
      </conditions-icon>
      <hazards time-layout="k-p42h-n3-3">
        <name>Watches, Warnings, and Advisories</name>
        <hazard-conditions>
          <hazard hazardCode="HT.Y" phenomena="Heat" significance="Advisory" 
            hazardType="long duration">
            <hazardTextURL>
http://forecast.weather.gov/wwamap/wwatxtget.php?cwa=oun&amp;wwa=Heat%20Advisory
            </hazardTextURL>
          </hazard>
          <hazard hazardCode="HT.Y" phenomena="Heat" significance="Advisory" 
            hazardType="long duration">
            <hazardTextURL>
http://forecast.weather.gov/wwamap/wwatxtget.php?cwa=oun&amp;wwa=Heat%20Advisory
            </hazardTextURL>
          </hazard>
          <hazard hazardCode="HT.Y" phenomena="Heat" significance="Advisory" 
            hazardType="long duration">
            <hazardTextURL>
http://forecast.weather.gov/wwamap/wwatxtget.php?cwa=oun&amp;wwa=Heat%20Advisory
            </hazardTextURL>
          </hazard>
        </hazard-conditions>
      </hazards>
    </parameters>
  </data>
</dwml>]]></dwmlByDayOut>
      </ns1:NDFDgenByDayResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The response tells us that the weather is going to be very hot, over 100 degrees Fahrenheit, for the next 2 days and almost no chance of rain.

Last update: 2011.

Table of Contents

 About This Book

 soapUI 3.6.1 - Web Service Testing Tool

 REST Web Service and soapUI

 GetCountries - Get All Countries and Territories

 GetCurrencies - Get Currencies from All Countries and Territories

 GetGMTbyCountry - Get GMT Information of a Given Country

 GetISD - Get ISD Phone Code of a Given Country

 GetCitiesByCountry - Get Cities by Country

 LatLonListCityNames - Return Latitudes and Longitudes of US Cities

 GetInfoByState - Get ZIP Codes of a Given US State

 GetAirportInformationByCountry - Get Airport Code by Country

 GetGeoIP - Get Country by IP Address

 ConvertTemp - Convert Temperature Unit

 ChangeLengthUnit - Convert Length Unit

 ConvertWeight - Convert Weight Unit

 ChangeAreaUnit - Convert Area Unit

 Code39 - Generate Bar Code Images in Code 39 Format

 GenerateBarCode - Generate Bar Code Images

 GetMortgagePayment - Calculate Mortgage Payment

 ConversionRate - Get Currency Exchange Rate

 GetQuote - Get Stock Quote

 getTime - Get the Current Time

 GetSunSetRiseTime - Get Airport Code by Country

 GetWeatherByZipCode - Get Weather by ZIP Code in US

NDFDgenByDay - US Weather Forecast by Day

 NDFDgenByDay - Usage Description

 NDFDgenByDay - Request Message Sample

NDFDgenByDay - Response Message Sample

 NDFDgen - US-Weather Forecast for a Single Location

 questionSearch - Search Yahoo! Questions and Answers

 flickr.interestingness.getList - Get Interesting Photos

 Hotwire - Get Travel Ticker Deals

 References

 Printable Copy - PDF Version

Dr. Herong Yang, updated in 2011
NDFDgenByDay - Response Message Sample