0 Replies Latest reply on Apr 16, 2009 1:54 PM by Kaspar Fischer

    Automatically generating web service proxies

    Kaspar Fischer

      Dear list,

       

      I am following the instructions in the Flex 3 documentation on Automatically generating web service proxies. However, I cannot get the code from section "Using a return token" to work. The code from there,

       

      private function doCall():void {

          var ret:AsyncToken;

          ret = myService.keywordSearchRequest(input);

          ret.addEventListener

              (KeywordSearchRequestResultEvent.KeywordSearchRequest_RESULT,handleResult);

          ret.addEventListener(FaultEvent.FAULT,handleFaults);

      }

       

      together with a suitable handler handleResults() compiles but the listener is never invoked. If I use the code from section "Using utility methods", everything works (the listener is invoked).

       

      Is this a know bug?

       

      If so, are there any known workarounds?

       

      I cannot use the code from section "Using utility methods" as in my use case, several requests to the web service may be executing in parallel; for this, I need a way to remember, when my listener gets called to handle the result, what the corresponding request was. How can I achieve this?

       

      Related to this, do you know of any other frameworks that automatically generate web service proxies as I can do using "Data" -> "Import Web Service (WSDL)..." in Flex Builder/Eclipse?

       

      Many thanks,

      Hbf