Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > SOAPFault class > SOAPFault.faultstring | |||
Flash Media Server 2.
mySOAPFault.faultstring
Property; a string indicating the human-readable description of the error.
The following example shows the fault code in a text field if the Web Service Definition Language (WSDL) fails to load:
// Prepare the WSDL location:
var wsdlURI = "http://www.flash-db.com/services/ws/companyInfo.wsdl";
// Instantiate the web service object 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;
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000779.html