Amazon Web Services Continued
Ok, I am LAME…. Here is the CORRECT destination configuration ( in the proxy-config.xml ) to make the webservice work from within Flex using the WebService tag plus LiveCyle Data Services ES…
<destination id="amazon" adapter="soap-proxy">
<properties>
<url> http://webservices.amazon.com/AWSECommerceService/
AWSECommerceService.wsdl
</url>
<soap>http://soap.amazon.com/onca/soap?Service=AWSECommerceService
</soap>
</properties>
</destination>
I was calling the <url></url> above, <wsdl></wsdl>... and I had not inlcuded the <soap></soap> at all since I thought Flex Framework did that all by iteself….once I changed it to <url></url> and added the <soap> tag, everything worked fine.
I hope this helps other flex developers, as I found almost zilch online.
If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!
August 1st, 2008 at 2:17 pm
Hi there,
Could you tell me where i have to put that code to take care of the security issue?
Thanks in advance
August 1st, 2008 at 2:32 pm
Hi Nell,
It goes in the proxy-config.xml file in your LCDS server. If you use the standard set up, you’ll find it at:
[your drive]\[your LCDS folder]\jrun4\servers\default[or your project folder]\flex\WEB-INF\flexHope that helped.
Kev
August 7th, 2008 at 2:38 pm
This helps if you’re using the proxy, but what if you’re simply using the WebService MXML tag directly, as opposed to using the Import Web Service option? For example:
{amazonDeveloperId}
{itemId}
{idType}
{searchIndex}
ItemAttributes,Images,Tracks,EditorialReview
Amazon has a crossdomain.xml file, so this should simply work. In fact, it DID work until Flash 9,0,124,0. Any ideas?
August 7th, 2008 at 3:13 pm
[…] wall. Unless I’m totally mistaken, and there’s a workaround that doesn’t involve using a proxy? « US Border Laptop Search Policies Are […]
August 7th, 2008 at 3:25 pm
Brendon,
What url are you using to access the AWS?
Kev
August 7th, 2008 at 3:26 pm
I just wrote a quick HTTP Service that works fine without the Proxy:
<mx:HTTPService id="AmazonSearch"
showBusyCursor="true"
url="http://ecs.amazonaws.com/onca/xml" method="POST"
resultFormat="e4x"
result="itemSearchResult(event)">
</mx:HTTPService>