PDA

View Full Version : MX04: BUG? Sending Objects, Arrays to CF using webService


chewbacca nine
09-19-2003, 05:48 PM
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!

chewbacca nine
09-21-2003, 02:45 AM
Nobody else is using web services in Flash? Hello?

hangalot
09-22-2003, 09:39 AM
post an xample of the wsdl and an xample of the soap packet.

i send an array of structs from F7 2 a c# web service and it works sweetly.
i would also advise you to post this in flash mx forum.

chewbacca nine
09-22-2003, 11:22 PM
thanks I'll re-start this thread in the other forum.