|
The Site Inspector service checks a site for the type of server, what the server is running, and the server time. Then returns the results as an array. The original idea behind this was to obtain server information such as Netcraft.com. At this time we do not keep track of each request, but in the future we may start tracking server types and offer statistics based on usage.
To use the site inspector you must pass the script 3 parameters (username, password, and siteURL). The username and password part is so that we can authenticate flash-db users in the future. At this time any username and password can be used. siteURL is the URL of the site you wish to inspect. The result is returned as a simple array with 3 parts (serverTime, serverType, and Extra). |
|
#include "NetServices.as"
#include "NetDebug.as"
// create result handler for news service.
serviceResult = new Object();
serviceResult.onResult = function(result){
trace(result)
}
serviceResult.onStatus = function(status){
trace(status);
}
// sets up the gateway connection.
var serverConn = NetServices.createGatewayConnection("<pathToYourGateway>flashservices/gateway.php");
// sets up the service.
var service = serverConn.getService("http://www.flash-db.com/services/ws/siteInspect.wsdl", serviceResult);
// Set the params and call the service
params = {
username:'any',
password:'any',
siteURL: 'www.flash-db.com'
}
service.doSiteInspect(params);
|