shawn_t
03-22-2005, 08:10 PM
Is it possible to trap/catch this error so I can pop-up a dialog?
I do the following:
NetServices.setDefaultGatewayUrl(g_gatewayURL);
g_gatewayConnnection = NetServices.createGatewayConnection();
g_myService = g_gatewayConnnection.getService("myService");
trace("Connected:" + g_myService.serviceName);
and everything seems ok, but when the server is down and gateway.php is not accessible I eventually get a: "Error opening URL" error. I would like to recognize this and notify the user that the gateway service is unreachable.
NOTE: The error comes after my first attempt to use the service. For exampe:
g_myService.isValidUser(isValidUserReply, login, passwd);
I have defined both an onResult AND an onStatus method for isValidUserReply, but I don't seem to get an onStatus callback as I would expect...
I do the following:
NetServices.setDefaultGatewayUrl(g_gatewayURL);
g_gatewayConnnection = NetServices.createGatewayConnection();
g_myService = g_gatewayConnnection.getService("myService");
trace("Connected:" + g_myService.serviceName);
and everything seems ok, but when the server is down and gateway.php is not accessible I eventually get a: "Error opening URL" error. I would like to recognize this and notify the user that the gateway service is unreachable.
NOTE: The error comes after my first attempt to use the service. For exampe:
g_myService.isValidUser(isValidUserReply, login, passwd);
I have defined both an onResult AND an onStatus method for isValidUserReply, but I don't seem to get an onStatus callback as I would expect...