RE: [flexcoders] Coldfusion cfc's and Flex Remote Objects

2006-02-27 Thread Dekayd Media Inc.
Is your main CFC directory under your webroot or is it setup in the CF
Admin?

Did you setup a crossdomain policy file on your coldfusion instance?

If your cfc's are on your server then you should be using your servername in
the connection URL or a domain name if you have one pointed at that server.



--Kelly







-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of oiland_barry
Sent: Monday, February 27, 2006 8:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Coldfusion cfc's and Flex Remote Objects

Hi,

i have successfully got this working (almost!) at long last. I am
running both my cf and flex as iintegrated JRun servers on my server
machine (port 8700 and 8500 respectively) and i am developing and
accessing the mxml files from my laptop.

I can get the echo cfc to work ok, and i also placed another cfc in
the same directory (plants.cfc) which seems to let me get flex and cf
communicating.

My problem is that when i try to use another cfc in another directory
(not \flex\remoting\samples\) flex doesnt seem to be able to
communicate at all, it just sits there with the busy symbol.

Im not sure whats going on, but i am sure that i have added the
appropriate code in the right places and all the configuration files
(flex's flex-config.xml, cf's gateway-config.xml) seem to be in order!

Its just not working at all and i cant continue developing until i can
reliably have access to the cfc's!

Also, the named remote objects are giving em a bit of trouble...
should i be pointing to the server name or localhost. When i use
localhost, flex doesnt seem to be able to talk to the cfc's, but when
i use the servers name (advent) it seems to work fine.

Basically i cant get my flex to talk to my cfc's when they are stored
in my main cfc directory. I have restarted both the cf and flex
servers on many occasions and i have also restarted the whole machine
on a few occasions just to be sure everything is initialised properly.
I'll give it another restart now just to see.

Please help,

Barry






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Coldfusion cfc's and Flex Remote Objects

2006-02-27 Thread Benoit Hediard
First thing to check is to see if you can call your cfcs with a regular http
call :
http://localhost/flex/remoting/samples/SomeService.cfc

To start with Flex/CF connectivity, do not use named remote objects.
Simply use the default ColdFusion destination (defined when installing the
updater) + source attribute.

Ex.:
mx:RemoteObject id=someService
destination=ColdFusion
source=flex.remoting.samples.SomeService /

Benoit Hediard

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de oiland_barry
Envoyé : lundi 27 février 2006 16:11
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Coldfusion cfc's and Flex Remote Objects

Hi,

i have successfully got this working (almost!) at long last. I am running
both my cf and flex as iintegrated JRun servers on my server machine (port
8700 and 8500 respectively) and i am developing and accessing the mxml files
from my laptop.

I can get the echo cfc to work ok, and i also placed another cfc in the same
directory (plants.cfc) which seems to let me get flex and cf communicating.

My problem is that when i try to use another cfc in another directory (not
\flex\remoting\samples\) flex doesnt seem to be able to communicate at all,
it just sits there with the busy symbol.

Im not sure whats going on, but i am sure that i have added the appropriate
code in the right places and all the configuration files (flex's
flex-config.xml, cf's gateway-config.xml) seem to be in order!

Its just not working at all and i cant continue developing until i can
reliably have access to the cfc's!

Also, the named remote objects are giving em a bit of trouble...
should i be pointing to the server name or localhost. When i use localhost,
flex doesnt seem to be able to talk to the cfc's, but when i use the servers
name (advent) it seems to work fine.

Basically i cant get my flex to talk to my cfc's when they are stored in my
main cfc directory. I have restarted both the cf and flex servers on many
occasions and i have also restarted the whole machine on a few occasions
just to be sure everything is initialised properly.
I'll give it another restart now just to see.

Please help,

Barry






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/