31 Replies Latest reply on Dec 7, 2009 3:01 PM by nikos101

    how to use the same services-config for the local and remote servers.

    nikos101 Level 2

      My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.

       

      <?xml version="1.0" encoding="UTF-8"?>
      <services-config>
          <services>
              <service id="amfphp-flashremoting-service"
                  class="flex.messaging.services.RemotingService"
                  messageTypes="flex.messaging.messages.RemotingMessage">
                 
                  <destination id="amfphp">
                      <channels>
                          <channel ref="my-amfphp"/>
                      </channels>
                      <properties>
                          <source>*</source>
                      </properties>
                  </destination>
              </service>
          </services>
          <channels>
          <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
              <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
          </channel-definition>
          </channels>
      </services-config>

       

      I think the problem  is the line


              <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>

       

      but I'm not sure how to use the same services-config for the local and remote servers.