I've added a secure channel to my services-config.xml file, yet Flex tells me 
the channel doesn't exist when I try to use it.  No Security Sandbox errors or 
anything -- just "Destination 'SecureColdFusion' either does not exist or the 
destination has no channels defined"

But it does exist, and the channel is defined:
        <destination id="SecureColdFusion">
                <channels>
                        <channel ref="my-cfamf-secure"/>
                </channels>
                <properties>
                        <source>*</source>
                </properties>
        </destination>

        <channel-definition id="my-cfamf-secure" 
class="mx.messaging.channels.SecureAMFChannel">
            <endpoint 
uri="https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsecure";
 class="coldfusion.flash.messaging.SecureCFAMFEndPoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
                                
<add-no-cache-headers>false</add-no-cache-headers>
                                <serialization>
                                        
<enable-small-messages>false</enable-small-messages>
                                </serialization>
                                <coldfusion>
                                    <!-- define the resolution rules and access 
level of the cfc being invoked -->
                                        <access>
                                                <!-- Use the ColdFusion 
mappings to find CFCs-->
                                                
<use-mappings>true</use-mappings>
                                                <!-- allow "public and remote" 
or just "remote" methods to be invoked -->
                                                
<method-access-level>remote</method-access-level>
                                        </access>

                                        <!-- Whether the Value Object CFC has 
getters and setters. Set the value of use-accessors to true if there are 
getters and setters in the Value Object CFC. -->
                                        <use-accessors>true</use-accessors>
                                        <!--Set the value of use-structs to 
true if you don't require any translation of ActionScript to CFCs. The 
assembler can still return structures to Flex, even if the value is false. The 
default value is false.-->
                                        <use-structs>false</use-structs>
                                        
                                        <property-case>
                        <!-- cfc property names -->
                        <force-cfc-lowercase>false</force-cfc-lowercase>
                        <!-- Query column names -->
                        <force-query-lowercase>false</force-query-lowercase>
                        <!-- struct keys -->
                        <force-struct-lowercase>false</force-struct-lowercase>
                    </property-case>
                                </coldfusion>
            </properties>
        </channel-definition>
       
So why is Flex telling me this destination has no defined channels?


Reply via email to