Cairngorm Multiple Backend Example Update

January 20th, 2007

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:
http://renaun.com/blog/2006/12/19/170/

and get the update here:
http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/CairngormStoreMultipleBackend.zip

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

Entry Filed under: Adobe Flex, ColdFusion MX 7, Rich Internet Applications

6 Comments Add your own

  • 1. Shawn  |  2007-02-12 at 1.36 pm

    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/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
    at mx.rpc.soap::Operation/send()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.rpc.soap.mxml::Operation/send()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()

  • 2. Bill Pfeiffer  |  2007-05-31 at 1.49 pm

    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?

  • 3. Chris Thornhill  |  2007-07-19 at 5.19 am

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

  • 4. Cédric  |  2007-07-23 at 7.25 am

    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…

  • 5. David  |  2008-02-20 at 7.56 am

    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.

  • 6. It’s all about RIA&hellip  |  2008-10-13 at 10.01 pm

    [...] Renaun Erickson :: All in One - Cairngorm Store Example (ColdFusion, AMFPHP, AMFPHP 1.9, and WebServices) [...]

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

January 2007
S M T W T F S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Most Recent Posts


Flex.org - The Directory for Flex