Solved

Flash Remoting (remote Object) with Flex and ColdFusion

Posted on 2007-11-30
5
1,047 Views
Last Modified: 2008-10-13
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\

0
Comment
Question by:jduawa
  • 3
  • 2
5 Comments
 
LVL 19

Accepted Solution

by:
Gary Benade earned 500 total points
ID: 20387322
The source of the remoteobect can't be a local filesystem, it needs to be a proper URL starting with http://
0
 
LVL 1

Author Comment

by:jduawa
ID: 20388150
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
0
 
LVL 19

Expert Comment

by:Gary Benade
ID: 20388333
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.
0
 
LVL 19

Expert Comment

by:Gary Benade
ID: 20498387
Did you  get this working?
0
 
LVL 1

Author Comment

by:jduawa
ID: 20499822
it was definitely some kind of pathing issue, but i got it working
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now