Send parameters in order in HTTPService
Posted
by Suraj Chandran
on Stack Overflow
See other posts from Stack Overflow
or by Suraj Chandran
Published on 2010-03-25T02:20:20Z
Indexed on
2010/03/25
2:23 UTC
Read the original article
Hit count: 529
I am trying to work with a simple HTTPService. The problem is that my webservice is conscious of the order of arguments it gets. I will tell the problem with an example:
var service:HTTPService = new HTTPService();
var params:Object = new Object();
params.rows = 0;
params.facet = "true";
service.send(params);
Note that in the above code I have mentioned the parameter rows before facet, but the url I recieve is facet=true&rows=0
. So I recieve the argument rows before facet and hence my webservice does not work. I figured out that the contents of array is always sent in alphabetical order, which I dont want.
Is there any way I can achieve explict ordering of parameters sent?
Note that I am not in power of changing the logic of webservice(its basically a RPC service supporting both desktop and web client).
Thanks.
© Stack Overflow or respective owner