I have a flex application that is using the secure coldfusion channel in development, and it works fine. I checked it through firebug and it's definitely calling the https URL for the flexgateway. I am using the -services option in the compiler to use the services-config.xml.
When I move the flex application to the production machine, for some reason it reverts to using the non secure channel with the http protocol. I tried a clean project build, but it still happens. Below I'm posting my services-config and remote-config files to see if anyone can figure out anything. Thanks, Jim.
<destination id="ColdFusion"> <channels> <channel ref="my-cfamf-secure"/> </channels> <properties> <source>*</source> <!-- define the resolution rules and access level of the cfc being invoked --> <access> <!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. --> <use-mappings>true</use-mappings> <!-- allow "public and remote" or just "remote" methods to be invoked --> <method-access-level>remote</method-access-level> </access>
I figured out the problem. You have to Export the release build for the project and use that version of the swf. I was using the version built by default when you work on the project. Don't quite know what the difference is, but it works now.