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\c fusion-ear \cfusion-w ar\
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\devserv er.mydomai n.com\flex Test
when i try to access a cfc it says it cannot be found
the html file Flex builder created is in z:\inetpub\wwwroot\devserv er.mydomai n.com\flex Test\bin
this is my remote object code
<mx:RemoteObject id="entities_ro" destination="ColdFusion" source="logon_root.flexTes t.cfcs.ent ityGateway ">
<mx:method name="getEntities" result="handleRO(event)" />
</mx:RemoteObject>
logon_root is a coldfusion mapping set to
z:\inetpub\wwwroot\devserv er.mydomai n.com\
the root folder I have
Z:\JRun4\servers\cfusion\c
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\devserv
when i try to access a cfc it says it cannot be found
the html file Flex builder created is in z:\inetpub\wwwroot\devserv
this is my remote object code
<mx:RemoteObject id="entities_ro" destination="ColdFusion" source="logon_root.flexTes
<mx:method name="getEntities" result="handleRO(event)" />
</mx:RemoteObject>
logon_root is a coldfusion mapping set to
z:\inetpub\wwwroot\devserv
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Basically the error is saying that it cant find "logon_root.flexTest.cfcs. entityGate way"; that's no suprise because if you type logon_root.flexTest.cfcs.e ntityGatew ay or z:\inetpub\wwwroot\devserv er.mydomai n.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?
ASKER
it was definitely some kind of pathing issue, but i got it working
ASKER
The examples i have seen seem to reference the source of the remote object in a similar way