Groups | Blog | Home
all groups > macromedia flash flash remoting > june 2004 >

macromedia flash flash remoting : How to check net connection?


Jeremy Tan
6/16/2004 1:17:08 AM
Serendipity Guy
6/17/2004 1:13:46 AM
Try this

// connect to the Flash Remoting service provider
if (isGatewayOpen == null) {
// do this code only once
isGatewayOpen = true;
// Make the Gateway connection

NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
gatewayConnnection = NetServices.createGatewayConnection();
parkService= gatewayConnnection.getService("devCenter.ParkService", this);
trace("Connected");
// CALL Web service: Do initial Data load for info
someMeathod();
trace("sent request");
}
Serendipity Guy
6/17/2004 1:17:05 AM
Also

Two things to check first:

[quoted text, click to view]

What does that URL show? You should get a blank page but no error (to confirm
Flash Remoting works on your server).


You also need to test this URL:

http://localhost:8500/url.some.cfc

That will prompt you to login (RDS or CF Admin password) and then display the
CFC's documentation.

http://localhost:8500/url.some.cfc?WSDL

If your CFC exists and has remote methods, that should display a web service
definition (XML).

AddThis Social Bookmark Button