Solved

Flash Remoting (remote Object) with Flex and ColdFusion

Posted on 2007-11-30
5
1,053 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Getting rid of an unwanted URL 5 235
Why does my Sprite always have a width and height of ZERO? 2 970
Flex Mobile - check current view 2 905
Adobe Flex - Combobox - Disable Editing 15 813
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…
If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

860 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