|
Returns an array of detailed company stock and market information. The input parts/parameters include username,password, and ticker. Username and Password can be anything for now - ticker is the company's stock ticker you wish to obtain information on. Example: MACR, ADBE, MSFT, RHAT.
This service is mentioned in the Flash MX 2004 ActionScript Dictionary - Just do a search for 'flash-db' inside the help area, and you'll find it. |
|
#include "NetServices.as"
#include "NetDebug.as"
// create result handler for results and error messages.
serviceResult = new Object();
serviceResult.onResult = function(result){
trace(result)
}
serviceResult.onStatus = function(status){
trace(status);
}
// sets up the gateway connection.
var serverConn = NetServices.createGatewayConnection("<PathToGateway>/gateway.php");
// sets up the service.
var service = serverConn.getService("http://www.flash-db.com/services/ws/companyInfo.wsdl", serviceResult);
// Set the params and call the service
params = {
username:'anything',
password:'anything',
ticker:'macr'
}
// calls the doCompanyInfo method.
service.doCompanyInfo(params);
|