SOAPFault class
|
The SOAPFault class is the object type of the error object
returned to the WebService.onFault() and SOAPCall.onFault() functions.
This object is returned as the result of a failure and is an ActionScript
mapping of the SOAP Fault XML type.
AvailabilityFlash
Media Server 2
Property summary
Property
|
Description
|
SOAPFault.detail
|
A string indicating the application-specific
information associated with the error, such as a stack trace or other
information returned by the web service engine.
|
SOAPFault.faultactor
|
A string indicating the source of the fault.
|
SOAPFault.faultcode
|
A string indicating the short, standard
qualified name describing the error.
|
SOAPFault.faultstring
|
A string indicating the human-readable description
of the error.
|
SOAPFault.detailmySOAPFault.detail
A string indicating the application-specific information associated
with the error, such as a stack trace or other information returned
by the web service engine.
AvailabilityFlash
Media Server 2
SOAPFault.faultactormySOAPFault.faultactor
A string indicating the source of the fault. This property is
optional if an intermediary is not involved.
AvailabilityFlash
Media Server 2
SOAPFault.faultcodemySOAPFault.faultcode
A string indicating the short, standard qualified name describing
the error.
AvailabilityFlash
Media Server 2
SOAPFault.faultstringmySOAPFault.faultstring
A string indicating the human-readable description of the error.
AvailabilityFlash
Media Server 2
ExampleThe
following example shows the fault code in a text field if the WSDL
fails to load:
// Load the WebServices class:
load("webservices/WebServices.asc");
// Prepare the WSDL location:
var wsdlURI = "http://www.flash-db.com/services/ws/companyInfo.wsdl";
// Instantiate the web service object by using the WSDL location:
stockService = new WebService(wsdlURI);
// Handle the WSDL parsing and web service instantiation event:
stockService.onLoad = function(wsdl){
wsdlField.text = wsdl;
}
// If the wsdl fails to load, the onFault event is fired:
stockService.onFault = function(fault){
wsdlField.text = fault.faultstring;
}
|
|
|
|
|