User Guide
WebService.onFault 1445
The callback invoked when the response comes back from the WebService method is
PendingCall.onResult or PendingCall.onFault. By uniquely identifying your callback
objects, you can manage multiple
onResult callbacks, as in the following example:
myWebService = new WebService("http://www.myCompany.com/myService.wsdl");
callback1 = myWebService.getWeather("02451");
callback1.onResult = function(result)
{
// do something
}
callback2 = myWebService.getDetailedWeather("02451");
callback2.onResult = function(result)
{
// do something else
}
Description
Method; invokes a web service operation. You invoke the method directly on the web service.
For example, if your web service has the method
getCompanyInfo(tickerSymbol), you
would make the following call:
myCallbackObject.myservice.getCompanyInfo(tickerSymbol);
All invocations are asynchronous, and return a callback object of type PendingCall.
WebService.onFault
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
MyWebServiceObject.onFault = function(fault)
{
// Your code here.
}
Parameters
fault Decoded ActionScript object version of the error with properties. If the error
information came from a server in the form of XML, then the SOAPFault object is the
decoded ActionScript version of that XML.