0 Replies Latest reply on Aug 2, 2010 5:00 AM by sahil_trumboo

    Send multiple argument to backend method

    sahil_trumboo Level 1

      Dear All,

       

      I am trying to send the multiple arguments to backend server method using Remote Object. At the backend I am using Weborb for .net

       

       

      private function initWebOrb(event:AppEvent):void

      {

          weborbCallback = event.callback;

      var method:String = event.data.method as String;

      var data:Array  = event.parameterdata;

        

      var op:AbstractOperation = remoteDataObject.getOperation(method);

      op.addEventListener("result", getListResultHandler);

      op.addEventListener("fault", onerrorweborb);

      op.arguments =data;

      op.send();

      }

       

      but It shows the error unable to find method with name "Testmethod"  and the given argument types  at Weborb.Util.MethodLookup..........

       

      I have also tried.

       

      private function initWebOrb(event:AppEvent):void

      {

         weborbCallback = event.callback;

      var method:String = event.data.method as String;

      var data:Array  = event.parameterdata;

       

      var op:AbstractOperation = remoteDataObject.getOperation(method);

      op.addEventListener("result", getListResultHandler);

      op.addEventListener("fault", onerrorweborb);

      op.send(data);

      }

       

      I also tried to send the data as object

      var data:Object  = event.parameterdata;

       

      Note: I change the argument type accordingly while dispatching this event.