Amazon Web Services funkiness with BlueDragon.NET

By David Fekke
January 17th, 2011

I have been playing around with BlueDragon.NET with one of the older applications I have that uses Web Services. If you have not looked at the Amazon Web Service, you really should because it is a good example of how Web Services should work.

Unlike the Google web Services, you only pass one parameter into the web method, and only one parameter is passed back. Both are actually simple SOAP objects that are defined in the WSDL file. The chief difference I am finding with ColdFusion MX and Blue Dragon is that ColdFusion treats the object returned as a Java Object, and BD treats the object as a series of structures and arrays. Here is an example of some test code I wrote. Try running it in both ColdFusion and BD, and see the results.

"attributes.pagenumber" default="1" /> "devtag" default="DYXI4669H65EH" /> "tag" default="davidfekkeshomep" /> "sims" default="false" />

aDirectorRequest.keyword = "Forta"; = 1;
aDirectorRequest.mode = "books";
aDirectorRequest.tag = tag;
aDirectorRequest.type = "lite";
aDirectorRequest.devtag = devtag;
aDirectorRequest.locale = 'US';


<cfinvokeargument name="KeywordSearchRequest" value="#aDirectorRequest#"/>

<cfdump var="#aProductInfo#" />

← Previous Page  Next Page →