1 Reply Latest reply on Apr 22, 2007 5:28 AM by GMina

    No services-config.xml file

      What is the process that installs this file on my server? I dont have this file in my web directory
        • 1. Re: No services-config.xml file
          are you running flex data services, or just using the Flex SDK? If you are just using the SDK (or Flex Builder) than you don't need to have the file on your server. It just needs to be available during compile-time.

          If you are using ColdFusion keep reading...
          I included a ColdFusion services-config.xml file below. You would just need to replace [INSERT YOUR URL] with your actual CF server URL. You could copy this file locally to your MXML components and include the path in the compiler options using the

          -services "c:\fullpath\to\services-config.xml"

          compiler switch.

          **** SERVICES-CONFIG.XML *****
          <?xml version="1.0" encoding="UTF-8"?>
          <service id="coldfusion-flashremoting-service"

          <adapter-definition id="cf-object" class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/>

          <destination id="ColdFusion">
          <channel ref="my-cfamf"/>
          <!-- define the resolution rules and access level of the cfc being invoked -->
          <!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -->
          <!-- allow "public and remote" or just "remote" methods to be invoked -->

          <!-- cfc property names -->
          <!-- Query column names -->
          <!-- struct keys -->


          <channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
          <endpoint uri=" http://[INSERT YOUR URL]/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>

          <target class="flex.messaging.log.ConsoleTarget" level="Error">
          <prefix>[Flex] </prefix>