Parameters
Decoded ActionScript object version of the error with properties. If the error
fault
information came from a server in the form of XML, then the SOAPFault object will be the
decoded ActionScript version of that XML.
The type of error object returned to
object is not constructed directly by you, but returned as the result of a failure. This object is an
ActionScript mapping of the SOAPFault XML type.
SOAPFault property Description
faultcode
faultstring
detail
element
faultactor
Returns
Nothing.
Description
Callback function; called by Flash Player when the
returned an error. This can happen when the WSDL file cannot be parsed or the file cannot be
found. The
fault
Example
The following example handles any error returned from the creation of the WebService object.
MyWebServiceObject.onFault = function(fault)
{
// captures the fault
DebugOutputField.text = 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.onLoad
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
WebService.onFault
String; the short standard QName describing the error.
String; the human-readable description of the error.
String; the application-specific information associated with the error, such
as a stack trace or other information returned by the web service engine.
XML; the XML object representing the XML version of the fault.
String; the source of the fault. Optional if an intermediary is not involved.
parameter is an ActionScript SOAPFault object.
methods is a
new WebService()
Web service classes (Flash Professional only)
object. This
SOAPFault
constructor has failed and
863
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?