0 Replies Latest reply on Jan 26, 2010 12:22 PM by epi3rc3

    Change Flex Gateway URL

    epi3rc3 Level 1

      im making an air app and am trying to connect to my coldfusion db on a shared hosting server i have. heres my code:

       

      private function init():void
      {
          // Provide Credentials for Server side Connection and CFC
          syncmanager = new SyncManager();
          syncmanager.cfPort = 8501;
          syncmanager.cfServer = "216.198.218.157";
          // Path of the Server side CFC having Sync/Fetch method, relative from CF webroot
          syncmanager.syncCFC = "AIRIntegration.cusManager";
          // THis handler will be called when any COnflict occures while writing back changes on serverside
          syncmanager.addEventListener(ConflictEvent.CONFLICT, conflictHandler);
          // Fetch Server side DB data onto Client SQLite DB while starting the App itself
          var token:AsyncToken= syncmanager.fetch("fetch");
          token.addResponder(new mx.rpc.Responder(fetchSuccess, fetchFault));
          trace("init");
         
      }

       

      and im getting this error:

       

      > fetch fault[FaultEvent fault=[RPC Fault faultString="Send failed"
      > faultCode="Client.Error.

      MessageSend" faultDetail="Channel.Connect.Failed
      > error NetConnection.Call.Failed: HTTP: Failed: url: '
      > http://216.198.218.157:8501/flex2gateway/'"] messageId=null type="fault"
      > bubbles=false cancelable=true eventPhase=2]

      i contacted my host and they told me "try adjusting your Flex configuration files to use "http://www.xenobits.com/flex2gateway/" for the Flex gateway URL instead of "http://216.198.218.157:8501/flex2gateway/"

      now my problem is i dont know how i can change that i tried haning cfServer to "xenobits.com" but it gives me same error but with http://www.xenobits.com:8501/flex2gateway/
      i need it to do that without the port number apparently...
      any help is apprciated