I am trying to access a web service with Flex. So far I can import the
WSDL just fine using the webservice import wizard. (File->Import->Web
Service) But when I try to use one of the methods from the WSDL Flex
tells me that I am trying to access an undefined property of the service.

/* code

        import net.webservicex.BaseGlobalWeather;
        import mx.rpc.events.ResultEvent;
        import net.webservicex.GetWeatherResultEvent;
        import net.webservicex.GlobalWeather;

        private var weather:GlobalWeather = new GlobalWeather;
#       weather.getWeather("Spokane", "United States");
#       weather.addgetWeatherEventListener(handleWeather);
        private function handleWeather(event:ResultEvent):void
        {
         trace(event.result);
        }
*/

The lines causing the problem are marked with '#'. You can view the
WSDL that I am working with at
http://www.webservicex.net/globalweather.asmx?wsdl

and I am trying to follow the example from http://www.flexlive.net/?p=79

Any help is appreciated, thank you.

Reply via email to