SSR RemotingCall.as sending an associative array

0 views
Skip to first unread message

Ricardo Pereira

unread,
Feb 1, 2008, 12:54:14 PM2/1/08
to rubyamf
Hi list,

On the RemotingCall class the remote method is called by:

remotingService.remotingConnection.connection.call.apply(null,
callArgs.concat(args));

but my arguments are not a simple array they are an associative Array
so the concatenation fails.

I solved by just calling the function

remotingService.remotingConnection.connection.call(operation,responder,args)

I understand the reason for concatnating arguments, otherwise you
could only send one, but associative arrays are really a good solution
for identifying arguments on the server.

Any ideas on how to implement both solutions?

Aaron Smith

unread,
Feb 1, 2008, 8:15:32 PM2/1/08
to rub...@googlegroups.com
In the call you make on your remoting service, you have to wrap you
args in an array like so:

myservice.myMethod([arg1,arg2],onres,onfal)

When the concat happens in remotingcall its concatenating that entire
array.


On Feb 1, 2008, at 9:54 AM, Ricardo Pereira <rjoaop...@gmail.com>
wrote:

Ricardo Pereira

unread,
Feb 4, 2008, 6:34:23 AM2/4/08
to rub...@googlegroups.com
got it

Thank you very much for SSR

--

*RICARDO PEREIRA
MULTIMEDIA DEVELOPER
EDIGMA.COM
TECHNOLOGY CONTENTS CONSULTING

* *TOUCHINGTHEFUTURE

-----------------------------------------------------*
*
DIRECT SUPPORT* *+351 253 265 506
**-----------------------------------------------------


WEB* *| **www.edigma.com <blocked::http://www.edigma.com/>
E-MAIL* *| **edi...@edigma.com

L I S B O A P O R T O A V E I R O B R A G A* *
**-----------------------------------------------------

HEAD-OFFICE EDIGMA.COM S.A.
CENTRO DE NEGÓCIOS EMPRESARIAIS
PARQUE IND. DE ADAÚFE - LOTE C3
4710 - 571 BRAGA
PORTUGAL

TEL+351 253 265 506 FAX+351 253 265 507
-----------------------------------------------------*

Reply all
Reply to author
Forward
0 new messages