Joseph DeVore's Blog: Web Services


Viewing By Category : Web Services / Main
December 2, 2005
This web service is pretty cool. Using the XML response is a bit of a challenge, IMO. Maybe I just need to look at the examples and the results again. Ok, after looking at it again, it's pretty straight forward - I just need to decide how I want to present the info. Anyhow, cool stuff...

<cfinvoke webservice="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl"
method="NDFDgenByDay"
returnvariable="aString">

<cfinvokeargument name="latitude" value="47.555872"/>
<cfinvokeargument name="longitude" value="-122.001514"/>
<cfinvokeargument name="startDate" value="12/01/2005"/>
<cfinvokeargument name="numDays" value="1"/>
<cfinvokeargument name="format" value="12 hourly"/>
</cfinvoke>

<cfdump var="#xmlParse(aString)#">

http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLclient.php?lat=38.99&lon=-77.99&product=glance&begin=2007-09-30&end=2007-09-31T00%3A00%3A00&Submit=Submit

Comments

Comments are not allowed for this entry.













Editor Login ›