You can either point Flex at the servces-config.xml file on the server (If you have file access to the server) or create two servces-config.xml files - one on the server and one in the src directory within Flex. You would need a Compiler directive that points at this local file (-locale en_US -services "services-config.xml"). Then you just keep both files synchronized.
This is how you would do it if you were using a hosting company. In my case it is a local intranet and my server is a Linux box. I don't have local file access to the server. --- In [email protected], "Laurence" <lmacne...@...> wrote: > > 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" <valdhorlists@> 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? > > > > > >

