User Guide
WebServiceConnector component (Flash Professional only) 875
case 'StatusChange' :
break;
default :
trace("Error: "+error.code);
break;
}
};
var wsConn:WebServiceConnector = new WebServiceConnector();
wsConn.addEventListener("result", res);
wsConn.addEventListener("status", stat);
wsConn.WSDLURL = "http://www.flash-mx.com/mm/tips/tips.cfc?wsdl";
wsConn.operation = "getTipByProduct";
// wsConn.params = ["Flash"];
wsConn.suppressInvalidCalls = true;
wsConn.trigger();
To display a tip instead of an error, uncomment the line wsConn.params = ["Flash"];.
WebServiceConnector.timeout
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
componentInstance.timeout
Description
Property; a time period, in seconds, in which the web service connection fails if results do not
come back. A
status event (inherited from the WebServiceConnector component) is emitted,
with the code
WebServiceFault, fault code Timeout.
WebServiceConnector.trigger()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
componentInstance.trigger();
Description
Method; initiates a call to a web service. Each web service defines exactly what this involves. If the
operation is successful, the results of the operation will appear in the
results property for the
web service.