How to support HTTPS communication between SWF and BlazeDS when used AMF protocol.
Services-config.xml
-------------------
1. Place the below in services tag.
<default-channels><br /><channel ref="my-secure-amf"/><br /></default-channels><br /><br />2. Place below in channels tag.<br /><br /><channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel"><br /><endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/><br /><properties><br /><add-no-cache-headers>false</add-no-cache-headers><br /></properties><br /></channel-definition>
Important Note:
===============
"add-no-cache-headers" will solve problems when used in Internet Explorer.
For File download/ Image previews mention below:
Comment the below
//response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
//enable max-age = 0
response.setHeader("Cache-Control", "max-age=0");
//prevents caching at the proxy server
Saturday, August 7, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment