Jan 11 2003

Consuming Amazon with Flash Remoting, an nice

Published by at 10:34 under Wayback Archive

Consuming Amazon with Flash Remoting, an nice article at O’reilly on how to consume Amazon’s Web Service so that you can have your own little Amazon functionality inside a Flash application.

I had a quick glance at the source code and it’s pretty well documented. Don’t get overwhelmed by the amount of code that’s in there (almost 400 lines). When you study the code just keep in mind that the entire script can be devided into 4 main parts, which is also clear when you read the commments: 1) initializing the Flash Remoting connection, 2) Creating Call Back functions, 3) Wrappers to format the objects that are needed when calling a Web Service method and 4) calling a Web Service method. Due to the amount of functions defined in the Web Service, you end up writing quite some call back functions and object wrappers.

I think I have found some small errors in the wrapper parts; sometimes wrong function names are used when using Object.registerClass(), so be aware when using them.

Here comes the best part: I was typing this whilst reading the article and looking at the source code. Now I am trying to run the app, but I can’t get it to work! The server keeps throwing an error at me that the Web Service method with these parameters can not be found. I do not have the time right now to find out what I did wrong. Let me know how it works for you.

No responses yet

Comments are closed.