3 Replies Latest reply on Mar 24, 2008 6:47 PM by riesvantwisk

    Referencing remote services


      I'm having some beginner problems. I've setup BlazeDS and have created my remote service. All works fine when I deploy everything to the server but I would like to be able to compile my Flex project and view it locally while calling the remote service on the web server. I've had success doing this with PyAMF but can't get it setup with BlazeDS.

      From my understanding I need to first edit the services-config.xml file. I've done this and set it to resolve my-amf to the server:

      <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
      <endpoint url=" http://combinationstudios.com:8400/samples/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>

      However when I compile the app the SWF is still trying to connect to services locally - when I trace HTTP requests it's point here: http://localhost:8400/samples/messagebroker/amf
      rather than http://combinationstudios.com:8400/samples/messagebroker/amf

      Is there something in the compiler settings I need to define or another XML file needs to be configured.

      Thank a lot