User Guide

Web service classes (Flash Professional only) 851
Example
The following onResult callback traces the name of the SOAPCall operation.
callback.onResult = function(result)
{
// Check my operation name
trace("My operation name is " + this.myCall.name);
}
PendingCall.onFault
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myPendingCallObj.onFault = function(fault)
{
// your code here
}
Parameters
fault
Decoded ActionScript object version of the SOAPFault object with properties. If the
error information came from a server in the form of XML, the SOAPFault object is the decoded
ActionScript version of that XML.
The type of error object returned to
PendingCall.onFault is a SOAPFault object. It is not
constructed directly by you, but is returned as the result of a failure. This object is an ActionScript
mapping of the SOAPFault XML type.
Returns
Nothing.
Description
Callback function; you provide this function, which Flash Player calls when a web service method
has failed and returned an error. The
fault parameter is an ActionScript SOAPFault object.
SOAPFault property Description
faultcode
String; a short string describing the error.
faultstring
String; the human-readable description of the error.
detail
String; the application-specific information associated with the error, such
as a stack trace or other information returned by the web service engine.
element
XML; the XML object representing the XML version of the fault.
faultactor
String; the source of the fault (optional if an intermediary is not involved).