User Guide
Web service classes (Flash Professional only) 861
{
OutputField.text = result
}
MyPendingCallObject.onFault = function(fault)
{
DebugField.text = fault.faultCode + "," + fault.faultstring;
// add code to handle any faults, for example, by telling the
// user that the server isn’t available or to contact technical
// support
}
WebService.getCall()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
getCall(var operationName)
Parameters
operationName
The web service operation of the corresponding SOAPCall object that you
want to retrieve.
Returns
A SOAPCall object.
Description
Function; when you create a new WebService object, it contains the methods corresponding to
operations in the WSDL URL you pass in. Behind the scenes, a SOAPCall object is created for
each operation in the WSDL as well. The SOAPCall object is the descriptor of the operation, and
as such contains all the information about that operation (how the XML should look on the
network, the operation style, and so on). It also provides control over certain behaviors. You can
get the SOAPCall object for a given operation by using the
getCall() method. There is a single
SOAPCall object for each operation, shared by all active calls to that operation. Once you have
the SOAPCall object, you can change the operator descriptor by using the SOAPCall class; see
“SOAPCall class (Flash Professional only)” on page 854.
WebService.myMethodName()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.