I feel compelled to note, however, that EJSE's Web service is not very reliable. We integrated it into our homepage some time ago, and I personally monitor the ColdFusion error logs so I get to see how often it generates errors. Actually, having said that, the service has only failed twice out of 20 attempts today. It's a banner day!
Anyway, we call the service hourly, caching results, storing them both in WDDX on the drive and in the application scope. When the application is loaded (the ColdFusion service is restarted, the Web server is booted, etc.), the application loads the data from the WDDX file back into the application scope. All requests pull the data from the application scope. Using this method, the uptime of the weather service doesn't have to be great: it just needs to be up more than it's down. I've learned to set my expectations low when dealing with Web services, especially the free ones. :) Benjamin S. Rogers http://www.c4.net/ v.508.240.0051 f.508.240.0057 -----Original Message----- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 5:58 PM To: CF-Talk Subject: Re: Web Disservices 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

