User Guide
864 Chapter 6: Components Dictionary
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
}