Link to home
Start Free TrialLog in
Avatar of jduawa
jduawa

asked on

Flash Remoting (remote Object) with Flex and ColdFusion

So i have ColdFusion 7.02 on our dev server and I have Flex Builder on my pc.  I am trying to get my Flex app to talk with some CFCs on the dev server.  I created a new project and selected a ColdFusion Flash Remoting project
the root folder I have
Z:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\
where z:\ is the dev server
the root url I have the url that is used to get to one of that severs web page http://devserver.mydomain.com

so i create the project in z:\inetpub\wwwroot\devserver.mydomain.com\flexTest

when i try to access a cfc it says it cannot be found
the html file Flex builder created is in z:\inetpub\wwwroot\devserver.mydomain.com\flexTest\bin

this is my remote object code
<mx:RemoteObject id="entities_ro" destination="ColdFusion" source="logon_root.flexTest.cfcs.entityGateway">
            <mx:method name="getEntities" result="handleRO(event)" />
      </mx:RemoteObject>

logon_root is a coldfusion mapping set to
z:\inetpub\wwwroot\devserver.mydomain.com\

ASKER CERTIFIED SOLUTION
Avatar of Gary Benade
Gary Benade
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jduawa
jduawa

ASKER

it isnt referenced as a local filesystem.  I have a mapping in CF called logon_root that points to z:\inetpub\wwwroot\devserver.mydomain.com\

The examples i have seen seem to reference the source of the remote object in a similar way
Basically the error is saying that it cant find "logon_root.flexTest.cfcs.entityGateway"; that's no suprise because if you type logon_root.flexTest.cfcs.entityGateway or z:\inetpub\wwwroot\devserver.mydomain.com\ into your web browser it will have no idea that you have a CF mapping on your server and it won't know where to go, you have to provide a direct web accesible url to the service because for all intents and purposes you could be calling a server anywhere in the world.
Did you  get this working?
Avatar of jduawa

ASKER

it was definitely some kind of pathing issue, but i got it working