1 Reply Latest reply on May 17, 2011 11:36 AM by UbuntuPenguin

    Trouble handling webservice response.

    digitallegit

      I am new to dealing with SOAP web services and I am having trouble trying to figure out how to handle the response.  I've got a basic service call:

       

       

      <mx:WebService id="myService" wsdl="http://myservice?wsdl" />

       

      private function getNamesFromService():void {
           myService.addEventListener(ResultEvent.RESULT, resultGetter);
           myService.getNames('v');

      }
                 
      public function resultGetter(event:ResultEvent):void {
           var xml:XML = new XML(event.result);
      }

       

      but I can't seem to figure out how to handle the event.result.  When I try to make it xml I don't get anything.  Is there some trick to reading the response?