Hmmm.... I would first troubleshoot by going back to the original file and making sure the destinations are still working. I suspect it is an problem in the services-config file.
Your secure endpoint looks a little funky to me. That may be the issue. Mine looks like (in uisng Flex 3): <channels> <channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel"> <endpoint uri="http://{server.name}:{server.port}/flex2gateway/amf" class="flex.messaging.endpoints.AMFEndpoint"/> <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> <channel-definition id="my-secureamf" class="mx.messaging.channels.SecureAMFChannel"> <endpoint uri="https://{server.name}:{server.port}/flex2gateway/secureamf" 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> <channels> I don't think there is a flex2gateway/cfamfsecure or SecureCFAMFEndpoint And..... In our configurations I have no access to the web-inf so we had to fool builder. We placed a copy of the services-config.xml where I could get at it. Then I pointed builder at it by setting a compiler argument. In your project properties go to the Flex Compiler and put in something like -services "myfullyresolvedpath\services-config.xml" -locale en_US Just make sure it is an exact copy. We use the same services--config.xml on all our installs. I can compile something on dev and drop the swf into prod -- works fine. It may not be the best solution but it is one that works Warren ----- Original Message ----- From: Laurence To: [email protected] Sent: Friday, February 19, 2010 3:24 PM Subject: [flexcoders] Re: Flex doesn't appear to be using my services-config.xml file... You say "within Flex." Where, exactly? I thought the only place services-config.XML was supposed to be was in the WEB-INF folder? So maybe that's my problem -- Flex is looking for servces-config.xml somewhere else. But I did a search and it doesn't appear anywhere but in WEB-INF... So where should it be? Thanks, L. --- In [email protected], "valdhor" <valdhorli...@...> wrote: > > I don't know whether it is the same in ColdFusion or not but in my case with WebORB I have to have the destination set in the services-config.xml file in the WEB-INF directory on the server as well as within Flex. > > --- In [email protected], "Laurence" <LMacNeill@> wrote: > > > > 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? > > >

