On Sunday, Feb 9, 2003, at 20:54 US/Pacific, danielEthan wrote:
> The web services I'm trying to consume are all weather related:
>
> <cfinvoke
>   webservice = "http://www.ejse.com/WeatherService/Service.asmx?wsdl";
>   method = "GetWeatherInfo"
>   zipCode = "65641"
>   returnvariable = "Weather">

Works just fine:

Weather for location: Castro Valley, CA
Temp: 64�F Feels like:
Forecast: Fair Visibility: Unlimited
Pressure: 30.00 inches and falling DewPoint: 32�F
UVIndex: 3 Low Humidity: 30%
Wind: From the East at 12 mph
Reported at: Hayward, CA Last updated: Monday, February 10, 2003, at 
1:54 PM Pacific Standard Time (Monday, 4:54 PM EST).

Here's my code:

<cfinvoke
   webservice = "http://www.ejse.com/WeatherService/Service.asmx?wsdl";
   method = "GetWeatherInfo"
   zipCode = "94546"
   returnvariable = "Weather">
Weather for location: #Weather.getLocation()#<br>
Temp: #Weather.getTemprature()#
Feels like: #Weather.getFeelsLike()#<br>
Forecast: #Weather.getForecast()#
Visibility: #Weather.getVisibility()#<br>
Pressure: #Weather.getPressure()#
DewPoint: #Weather.getDewPoint()#<br>
UVIndex: #Weather.getUVIndex()#
Humidity: #Weather.getHumidity()#<br>
Wind: #Weather.getWind()#<br>
Reported at: #Weather.getReportedAt()#
Last updated: #Weather.getLastUpdated()#<br>

Note that you get back a Java object and have to call methods on it to 
extract the data. You can find this out - as I did - by calling cfdump 
on the returned variable.

It's a bit cold in Eagle Rock, isn't it? 43F? Brrrrrr...

Sean A Corfield -- Director, Architecture
Web Technology Group -- Macromedia, Inc.
tel: (415) 252-2287 -- cell: (415) 717-8473
aim/iChat: seancorfield -- http://www.macromedia.com
An Architect's View -- http://www.macromedia.com/go/arch_blog

ColdFusion MX and JRun 4 now available for Mac OS X!
http://www.macromedia.com/go/cfmxosx

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to