diff options
author | pab <devnull@localhost> | 2009-06-20 12:15:53 +0000 |
---|---|---|
committer | pab <devnull@localhost> | 2009-06-20 12:15:53 +0000 |
commit | 172a4c222d81ff6af993fad4f386c57dc383da13 (patch) | |
tree | 21f4aa18d1bc3be2a764312ff5adbd050deab12d /examples/ndfd | |
parent | 0f5dd1940a425461cb1ea11e400748d9490e5d9c (diff) |
Update for new dateTime interface; save end actions for SOAP use
Diffstat (limited to 'examples/ndfd')
-rw-r--r-- | examples/ndfd/forecast.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/ndfd/forecast.py b/examples/ndfd/forecast.py index ab5d3a8..6c1807e 100644 --- a/examples/ndfd/forecast.py +++ b/examples/ndfd/forecast.py @@ -10,9 +10,12 @@ import sys zip = [ 85711, 55108 ] if 1 < len(sys.argv): zip = sys.argv[1:] -begin = xsd.dateTime() +begin = xsd.dateTime.today() end = xsd.dateTime(begin + datetime.timedelta(7)) +endpoint = 'http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php' +soap_action = 'http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgen' + # Create the REST URI for this query uri = 'http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdXMLclient.php?zipCodeList=%s&product=time-series&begin=%s&end=%s&maxt=maxt&mint=mint' % ("+".join([ str(_zc) for _zc in zip ]), begin.xsdLiteral(), end.xsdLiteral()) print uri |