all groups > macromedia flash flash remoting > november 2003 >
You're in the

macromedia flash flash remoting

group:

Connected, but can't find Service


Connected, but can't find Service sduds
11/25/2003 11:39:36 PM
macromedia flash flash remoting:
This is probably simple stuff, but I've looked at it several different times now and can't figure out what's wrong.

I have verified that I have Flash services installed and running and have successfully connected to the gateway.

NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("public.macromedia.test.HelloWorld", new Result());
server.sayHello();

However, on the getService call, I get the error:
Error: "Service threw an exception during method invocation: No service named pub.macromedia.test.HelloWorld is known to Flash Remoting."
Problem: The movie could not create the Service Object because it doesn't exist. Either the Service Object is misspelled, the path is incorrect, the object name is incorrect, or the application is trying to connect to an unsupported service.
Solution: Ensure that the service and/or object name and paths are correct.

I have a .cfm file that calls this CFC and it works fine!
<cfoutput>
<cfinvoke component="pub.macromedia.test.HelloWorld"
method="sayHello"
returnVariable="message" />
#message#
</cfoutput>

All of the debugging I can find tells me to verify that the name of the service and directory is correct. If it's working in the .cfm, then that should be the same for the .fla?

Any help would be appreciated. I'm stuck. :(

Re: Connected, but can't find Service Tom Muck
11/26/2003 9:30:44 AM
[quoted text, click to view]
exist. Either the Service Object is misspelled, the path is incorrect, the
object name is incorrect, or the application is trying to connect to an
unsupported service.
[quoted text, click to view]
correct.



Is this service in the <webroot>/pub/macromedia/test folder on your local
server? Flash Remoting doesn't understand virtual paths.


--
---------------------------------------------------------------
Tom Muck
author -- Flash Remoting: The Definitive Guide
http://www.flash-remoting.com/notablog

Team Macromedia Volunteer for Flash

Extending Knowledge, Daily
http://www.communityMX.com/

Re: Connected, but can't find Service sduds
12/1/2003 4:54:10 PM
Thanks for the suggestions. I will keep that in mind: actual vs. virtual folders.

Yes, the files were in the right place, but (and I feel VERY silly about this ...) I was actually working on 2 different servers. I was unaware that CFServer was running on my local machine. So, I was attempting to run the Flash Remoting through my local CFServer with the files on our web server. Once I figured that out, it's all working fine.

However, that does bring up a new question ... I ran the test to see if Flash Remoting is working on our Web Server and get an error page rather than the blank page. This indicates that Flash Remoting is not enabled on the Web Server, but I'm not sure how to enable it.

Thanks again for the assistance.

Re: Connected, but can't find Service Tom Muck
12/2/2003 10:07:04 AM
[quoted text, click to view]
Flash Remoting is working on our Web Server and get an error page rather
than the blank page. This indicates that Flash Remoting is not enabled on
the Web Server, but I'm not sure how to enable it.

Is this an IIS server by any chance? There is a technote on configuring IIS
multi-homed servers here:
http://www.macromedia.com/support/coldfusion/ts/documents/tn18307.htm


--
---------------------------------------------------------------
Tom Muck
author -- Flash Remoting: The Definitive Guide
http://www.flash-remoting.com/notablog

Team Macromedia Volunteer for Flash

Extending Knowledge, Daily
http://www.communityMX.com/

Re: Connected, but can't find Service sduds
12/2/2003 4:29:06 PM
Thanks Tom!

I forwarded that TechNote on to the guy that admin's the web server and that was exactly it as our site(s) is not Default.

Thanks again for the newbie assistance.

Sharon

PS I just noticed your sig ... bought your book last weekend!


AddThis Social Bookmark Button