Cairngorm Multiple Backend Example Update

Posted on January 20, 2007 | 5 comments

I posted about an Flex example using Cairngorm Store and multiple backends (ColdFusion Remoting and WebServices, AMFPHP using AMF0 and AMFPHP 1.9 alpha using AMF3). I goofed and forgot to put one updated file into the download. It was a change to the ProductVO to handle some WebService VO property conversion.

You can read my first post here:

and get the update here:

PS: Thanks to Pete pointing out the missing file to me.

  • Shawn

    Have you ever seen a situation where you call a web service back to back you get the error below? For example when I click on a button to get a user, it works. But if I press it again I get an error. I looked at your code and I’m doing the exact same thing and still get the error. I am calling a web service on Jrun 4 but thought I would see if you had any suggestions on how to solve this problem. One other thing. It doesnt matter which method I call in a row, I get the same error.

    [RPC Fault faultString="Array of input arguments did not contain a required parameter at position 2" faultCode="Client.Input" faultDetail="null"]
    at mx.rpc.soap::Operation/mx.rpc.soap:Operation::createFaultEvent()
    at mx.rpc.soap::Operation/
    at mx.rpc.soap::Operation/send()
    at Function/
    at mx.rpc.soap.mxml::Operation/send()
    at Function/
    at mx.rpc::AbstractService/

  • Bill Pfeiffer

    Shawn, you may not get this, but, I just encountered the same error in the same situation (2nd pass through a web service call, I get the fault “Array of input arguments did not contain a required parameter at position 2″)

    Did you resolve this?

  • Chris Thornhill

    I’ve encountered the same problem. Has anyone determined the cause or resolved it?

  • Cédric

    I had the same problem. I think there is a bug in flex version 2.0.1, so this problem can occur. But I fund a solution to resolve this problem.

    In fact, my code was not perfect and that caused this bug. The problem is that I was loading the wsdl at each call on the same object WebServices.

    Try to load only once the wsdl, and it could be good.

    (take care, if you declare your webservice in a mxml file and if you use the attribute wsdl=”yourfile.wsdl”, the wsdl is loaded. Consequently, you don’t need to use the loadWsdl() function)

    Good luck anyway…

  • David

    Thanks Cédric, I too was having this problems with a different web service. It was asking about a parameter that didn’t even exist.

    I wasn’t calling the WSDL more than once and I was still getting this error. However, when I changed it so that the WSDL was declared in the MXML instead of loaded in an initialization method it seems to have fixed this error.

  • Pingback: It’s all about RIA