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>
December 16th, 2008 at 2:51 pm
I’m using “http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl”. However, it appears my problem is caused by the lack of the in the crossdomain.xml file on AWS. As a result, you can’t use SOAP to access AWS.
December 16th, 2008 at 8:37 pm
Brendon,
I believe you are right about that. You cannot (as far as I know) pull from the wsdl file without using the proxy of BlazeDS or LCDS, however you can still get almost all the same info via the HTTP Service as I did above. If your host server will allow, you can load LCDS or BlazeDS yourself and use the proxy or you can just use the HTTPService…
Or you could write your own proxy if you have another domain you do have access to.
I know it’s frustrating, but there are lots of ways to skin a cow.
Kevin