1 Reply Latest reply on Nov 14, 2008 10:26 AM by Natty2112

    Passing multiple arguments to CFC ???

      I am passing two parameters to a CFC via WebService, as seen below. This works fine.

      WebService.MyCFC(argument1, argument2);

      However, I have some CFC functions that I am passing more than 10 arguments into. Instead of having a lengthy string of arguments on my above code, I would like to create an object (array?) that stores each argument. I did this when I was coding in CF7 using the ColdFusion tags that rendered Flex-like code. Below is the example I used:

      var editArguments:Object = {};
      editArguments.Argument1 = 'my first argument';
      editArguments.Argument2 = 'my second argument';


      When trying this in Flex, I get the following error. I am unsure what I am doing wrong and I've Googled and Googled and cannot find my answer I am looking for. First of all, is it even possible to attempt what I am trying? Thanks!

      faultCode:EncodingError faultString:'Array of input arguments did not contain a required parameter at position 1' faultDetail:'null'