MX04: BUG? Sending Objects, Arrays to CF using webService
When I send simple data structures to Cold Fusion MX 6.1 from Flash MX04 WebService component I get unpredicatable results.
For instance, I have a service that expects an array. I must pass either an empty array OR an array of objects.
so, when I call the service this code will work (the service sends back a result):
area= new Array();
svc.params=[area];
svc.trigger();
however, this code fails:
area= new Array();
obj=new Object();
obj.type="bunny";
obj.type_value="fluffy";
area.push(obj);
svc.params=[area];
svc.trigger();
This call (sending and array containing structures with simple data) works fine from a CFML page. Is Flash not creating the proper structures for MX? Is this a bug?
Thanks!
|