SOAPFault.faultstring

Availability

Flash Media Server 2.

Usage

mySOAPFault.faultstring

Description

Property; a string indicating the human-readable description of the error.

Example

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