Solved

Flash Remoting (remote Object) with Flex and ColdFusion

Posted on 2007-11-30
5
1,056 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The conference as a whole was very interesting, although if one has to make a choice between this one and some others, you may want to check out the others.  This conference is aimed mainly at government agencies.  So it addresses the various compli…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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