Hello!
I am very new to Flex, so my question may be very silly.
Here it is.
I am playing with Flex and WebServices.
A have generated the WebService client-classes from WSDL using
FlexBuilder.
my mxml is like that:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
        >
        
        <mx:Script>
                <![CDATA[
                        import generated.webservices.*;
                        import mx.controls.Alert;
                        
                        public function
handlePlain(event:GetLocationsByNameLikeResultEvent):void
                {
                    trace("RESP done");
                    Alert.show(event.result.toString());
                }
                
                public function getLocLike():void
                {
                        var myService:AddressService= new AddressService();
                                
myService.addgetLocationsByNameLikeEventListener(handlePlain);
                                myService.getLocationsByNameLike("Tal"); 
                                trace("REQ done");                      
                }
                ]]>
        </mx:Script>
        
        <mx:Button id="myButton" label="Call operation" click="getLocLike()" /> 
</mx:Application>

I can successfully make a request, i have controlled WebService
log-files, but i cannot handle the response. For some reason
handlePlain listener - function is not called.

Where is the problem? Anny suggestions?


Reply via email to