This certainly is a bug in tghe WebService API. The arguments do not 
get mapped correctly.
I suggested to Jeff to change the makeRemoteCall function to this:

public function makeRemoteCall(methodName:String, eventName:String, 
args:Object):void{
    this.eventName = eventName;   
    var op:mx.rpc.AbstractOperation = ws[methodName];   
    ws.addEventListener("result",doResults);   
    ws.addEventListener("fault",doFault);   

    if(args){    
        op.arguments = args;
    } 
    op.send();
}

instead of passing an array of arguments to this function, you will 
send an object holding the arguments. something like this:

private function getProdsForCat(event:Event){
   var catId:int = List(event.currentTarget).selectedItem.CATEGORYID;

   var args:Object = new Object();
   args.CategoryId = catId;
   prodManager.makeRemoteCall("getProdsByCategory"
,"prodsRetrieved",args);
}

this solved my problems,






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to