When I use smartsniff/Charles, my remoteObject content is not
encrypted/https/port 443. IE/Firefox shows SSL to the user, eventhough
the data is NOT actually encrypted over AMF!
Below is my services-config.xml file and remoteObject code snips.
I've been researching this all day with no clear solution. As I
understand it so far, I should be able to use two channels in my
ColdFusion destination and the correct channel would be used
automatically. Not the case. I need https pages to use SSL and http
pages to not.
I tried splitting them up into two destinations, "ColdFusion" and
"ColdFusionSecure", in the same services-config, but I keep getting
errors that ColdFusionSecure cannot be found, when it is used at the
remoteObject destination.
I'd appreciate any suggestions.
Thanks,
Don
<channels>
<channel ref="my-secure-cfamf"/>
<channel ref="my-cfamf"/>
</channels>
<channel-definition id="my-cfamf"
class="mx.messaging.channels.AMFChannel">
<endpoint
uri="http://{server.name}:{server.port}/flex2gateway/"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
<channel-definition id="my-secure-cfamf"
class="mx.messaging.channels.SecureAMFChannel">
<endpoint
uri="https://{server.name}:{server.port}/flex2gateway/"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
<mx:RemoteObject
id="cfdata" showBusyCursor="true"
destination="ColdFusion" source="flex.secure.send">
<mx:method name="sendUpdate"
result="sendUpdate_Result(event)"
fault="sendUpdate_Fault(event)" />
</mx:RemoteObject>