I am working through the examples in the book Flex 2 Training from the source. We use ColdFusion as our application server, so I am trying to uses RemoteOjbect to invoke methods on CFCs.
I have an Product object defined in both Flex and in a CFC, and I am trying to call a cfc method addProduct, which is defined in in cfc. The method takes an argument names aProduct, defined as a Product, as an argument. I keep getting the following error: Element APRODUCT.CATID is undefined in ARGUMENTS. I know that this is not the case based on the trace statement in my mxml program: In addProduct; creating remote object Product catID = 3 Product prodName = kiwi Product unitID = 1 Product imageName = kiwi.gif And here is the error: addProductFault Element APRODUCT.CATID is undefined in ARGUMENTS. Server.Processing If I call the same cfc using a webservice instead of a remoter object, it works perfectly. In both flex and coldfusion, the elements in the product class are mixed case (e.g. catID NOT CATID, prodName NOT PRODNAME). Does anyone have any idea why I am getting these errors? If you need more info, please contact me, and I'll send it to you. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:3542 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
