If you are sure that you are properly providing all of the parameters required and are still not having success...it probably means that a dynamic value of one of your parameters is returned "undefined" as its value. This will cause flex to say that it does not have all of the required params and will not make the ws call. Does the service call work when you use a hardcoded value instead of {searchString.text}? If so, then I would change the button to call amazon.ItemSearch(accessKey, service, keywords, searchString.text, operation); instead of just calling send with all of the predefind parameters. Just a thought, it may not be the problem at all but is the first thing that came to mind. Hope it helps.
 
Something I should have accessed first, is the error you are getting coming from the amazon service or is a flex error that is thrown prior to the service being called?
 
|<
 
Karl Johnson
Cynergy Systems, Inc.


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Buhler
Sent: Wednesday, April 26, 2006 12:33 PM
To: [email protected]
Subject: [flexcoders] Amazon Web Services

Ok, I'm a bit of a newbie when it comes to Flex, but I just can't get this to work. I'm trying to do an item search on Amazon, using the chunk of code below. However, I keep getting the error that I'm missing required parameters like the "SearchIndex". Am I doing something wrong here? I can't find the answer anywhere else, so I'm at your mercy.

Thanks,

Josh


useProxy="false">
<mx:operation name="ItemSearch" showBusyCursor="true">
<ItemSearch>
<AWSAccessKeyId>1SEH1ZG68CMWH9E84VR2</AWSAccessKeyId>
<Service>AWSECommerceService</Service>
<Keywords>{searchString.text}</Keywords>
<SearchIndex>Blended</SearchIndex>
<Operation>ItemSearch</Operation>
</ItemSearch>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Panel height="114" layout="absolute" title="Search for products" id="panel1" left="10" right="10" top="10">
<mx:Label x="10" y="10" text="Search String" id="searchLabel"/>
<mx:TextInput x="96" y="8" width="228" id="searchString" text="elvis"/>
<mx:Button x="332" y="8" label="Search" id="startSearch"
click="amazon.ItemSearch.send()"/>
</mx:Panel>



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to