User Guide
164 Server-Side ActionScript Language Reference
Constructor for the WebService class
Availability
Flash Media Server 2.
Usage
new WebService(wsdlURI)
Parameters
wsdlURL A string specifying the URL of a WSDL URL.
Returns
A WebService object.
Description
Constructor; creates a new WebService object. You must use the constructor to create a
WebService object before you call any of the WebService class methods.
Example
The following example prepares the WSDL location and passes it to the WebService
constructor to create a new WebService object,
stockService:
var wsdlURI = "http://www.flash-db.com/services/ws/companyInfo.wsdl";
stockService = new WebService(wsdlURI);
WebService.onFault
Availability
Flash Media Server 2.
Usage
myWS.onFault(fault){}
Parameters
fault An object version of an XML SOAP fault (see “SOAPFault class” on page 142).
Returns
Description
Event handler; called when an error occurs during WSDL parsing. The web services features
convert parsing and network problems into SOAP faults for simple handling.