1 Reply Latest reply on Apr 27, 2009 12:41 PM by Michael Borbor

    remoteobject call cfc on remote server

    arocheking

      Our goal is to have any of our flex developers use a central set of cfcs. Rather than having everyone need to duplicate all the required file structure etc.

      So it seemed like adding endpoint to the RemoteObject tags should get us significantly closer.

       

      <mx:RemoteObject id="SomeTest" source="sometest" destination="ColdFusion"  endpoint="http://localhost:8500/" >

      ... I've tried various endpoint syntax a remote server address and ip and using 127.0.0.1 instead of localhost

      ... If I take out the endpoint attribute, it works just fine

       

      ... it calls a cfc in the webroot

      ... in case you want to see the cfc function... it just returns a variable.

      <cffunction name="TestFunction" access="remote" returntype="String">

       

      I'm running cf locally and my flex compiler is

      -services "C:\ColdFusion8\wwwroot\WEB-INF\flex\services-config.xml" -locale en_US

       

      When I run the app which simply calls the cfc and alerts the result, it works fine unless I have an endpoint defined as above. The error is:

      faultDetail="Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://localhost:8500/

        • 1. Re: remoteobject call cfc on remote server
          Michael Borbor Level 4

          The correct endpoint will be http://localhost:8500/flex2gateway

           

          Sincerely,

           

          Michael

           

          El 27/04/2009, a las 14:07, arocheking <forums@adobe.com> escribió:

           

          >

          Our goal is to have any of our flex developers use a central set of 

          cfcs. Rather than having everyone need to duplicate all the required 

          file structure etc.

          So it seemed like adding endpoint to the RemoteObject tags should 

          get us significantly closer.

          >

          <mx:RemoteObject id="SomeTest" source="sometest" 

          destination="ColdFusion"  endpoint="http://localhost:8500" >

          ... I've tried various endpoint syntax a remote server address and 

          ip and using 127.0.0.1 instead of localhost

          ... If I take out the endpoint attribute, it works just fine

          >

          ... it calls a cfc in the webroot

          ... in case you want to see the cfc function... it just returns a 

          variable.

          <cffunction name="TestFunction" access="remote" returntype="String">

          >

          I'm running cf locally and my flex compiler is

          -services "C:\ColdFusion8\wwwroot\WEB-INF\flex\services-config.xml" -

          locale en_US

          >

          When I run the app which simply calls the cfc and alerts the result, 

          it works fine unless I have an endpoint defined as above. The error 

          is:

          faultDetail="Channel.Connect.Failed error 

          NetConnection.Call.BadVersion: : url: 'http://localhost:8500/

          >