> 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.

Just to add to Sean Corfields .. you can dump the return variable
But hey...You can also Inspect the WSDL carefully and
find out what its giving you back...(A complex type).

Joe Eugene

- <s:complexType name="WeatherInfo">
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="Location" type="s:string" />
  <s:element minOccurs="1" maxOccurs="1" name="IconIndex" type="s:int" />
  <s:element minOccurs="0" maxOccurs="1" name="Temprature" type="s:string"
/>
  <s:element minOccurs="0" maxOccurs="1" name="FeelsLike" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Forecast" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Visibility" type="s:string"
/>
  <s:element minOccurs="0" maxOccurs="1" name="Pressure" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="DewPoint" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="UVIndex" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Humidity" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Wind" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="ReportedAt" type="s:string"
/>
  <s:element minOccurs="0" maxOccurs="1" name="LastUpdated" type="s:string"
/>
  </s:sequence>
  </s:complexType>


> -----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
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