User Guide
WebServiceConnector.suppress InvalidCalls 1461
Example
The following example defines a function fault for the status event and assigns the
function to the
addEventListener event handler. The example intentionally misspells the
URI for the service to return a web service fault (the url should be
"http://www.flash-
mx.com/mm/tips/tips.cfc?wsdl"
) and a message asking the user to verify the URI. With a
WebServiceConnector component in the library, add the following to the first frame of the
timeline:
import mx.data.components.WebServiceConnector;
var fault = function (stat) {
if (stat.code == "WebServiceFault"){
trace(stat.data.faultcode);
trace(stat.data.faultstring);
trace(stat.data.detail);
}
};
var wsConn:WebServiceConnector = new WebServiceConnector();
wsConn.addEventListener("status", fault);
wsConn.WSDLURL = "http://www.flasht-mx.com/mm/tips/tips.cfc?wsdl";
wsConn.operation = "getTipByProduct";
wsConn.params = ["Flash"];
wsConn.trigger();
WebServiceConnector.suppress
InvalidCalls
Availability
Flash Player 6 (6.0.79.0).
Unknown.Call.Failure WebService invocation
failed for unknown reasons
Client.Disconnected Could not load imported
schema
Unable to load
schema; if currently
online, please verify
the URI and/or format
of the schema at
(XXXX)
faultcode faultstring detail