User Guide
WebService.onLoad 1447
WebService.onLoad
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myService.onLoad = function(wsdlDocument)
{
// Your code here.
}
Parameters
wsdlDocument The WSDL XML document.
Returns
Nothing.
Description
Callback function; called by Flash Player when the WebService object has successfully loaded
and parsed its WSDL file. If operations are invoked in an application before this callback
function is called, they are queued internally and not actually transmitted until the WSDL
has loaded.
Example
The following example specifies the WSDL URL, creates a new web service object, and
receives the WSDL document after loading.
// Specify the WSDL URL.
var wsdlURI = "http://www.flash-db.com/services/ws/companyInfo.wsdl";
// Creates a new web service object.
stockService = new WebService(wsdlURI);
// Receives the WSDL document after loading.
stockService.onLoad = function(wsdlDocument);
{
// Code to execute when the WSDL loading is complete and the
// object has been created.
}