Archive for June, 2008

Amazon Web Services Continued

Friday, June 27th, 2008

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!

Flex WebService with Amazon Web Services (AWS)

Tuesday, June 24th, 2008

Here is a letter I posted to a guy who wrote an app almost identical to what I just wrote.. and it is getting the same error I get.

Now before you tell me it’s a cross domain policy file issue, I checked and it seems amazon has a perfectly fine cross domain policy file in place (If I’m wrong here, plese let me know)..

Also, I’ve tried consuming the web service via proxy via the LiveCycle Data Services ES server I have on my machine and it also generates an error that the destination will not allow the wsdl url (even though I tried using the EXACT wsdl url as the destination url)…

The app loads and when I do a TraceTarget to explore the network traffic, I can see the the wsdl loads, but when I try to call any operation I get the security error….
###########################################

I noticed your demo applications [ http://www.flextense.net/asset/example/amazon/AmazonWebServiceDemo.html  ]  in the article you posted (  FleXtense Helps Flex Applications Access Web Services ) is generating a security error [  “Security error accessing url”  ]. Were you aware of this and if so, have you found a solution? (other than using REST based protocol for AWS) ??   I just wrote an application to test out AWS and I’m getting the same error, as a matter of fact every flex demo app on the web that is using the WebService tag is generating that error… do you know what’s up??############################################Ok, well if there are any Flex developers around, please test it out and chime in. It will only take you about 20 seconds to set a web service up to test.

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!