WebService.onLoad

Availability

Flash Media Server 2.

Usage

myWS.onLoad(wsdldocument)

Parameters

wsdldocument A WSDL XML document.

Returns

Nothing.

Description

Event handler; called when the web service has successfully loaded and parsed its WSDL file. Operations can be invoked in an application before this event occurs; when this happens, they are queued internally and not actually transmitted until the WSDL has loaded.

Example

In the following example, the onLoad event is used to handle the WSDL parsing:

// Prepare the WSDL location:
var wsdlURI = "http://www.flash-db.com/services/ws/companyInfo.wsdl";

// Instantiate the web service object using the WSDL location: 
stockService = new WebService(wsdlURI);

// Handle the WSDL parsing and web service instantiation event.
stockService.onLoad = function(wsdl){
    wsdlField.text = wsdl;
}

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/fms/2/docs/00000798.html