User Guide

1454 WebServiceConnector component (Flash Professional only)
When multiple calls are simultaneously in progress, there is no guarantee that they will be
completed in the order in which they were triggered. Also, the browser and/or operating
system may place limits on the number of simultaneous network operations. The most likely
limit you may encounter is the browser enforcing a maximum number of URLs that can be
downloaded simultaneously. This is something that is often configurable in a browser.
However, even in this case, the browser should queue streams, and this should not interfere
with the expected behavior of the Flash application.
Example
The following example enables multiple simultaneous calls to myXmlUrl to take place:
myXmlUrl.multipleSimultaneousAllowed = true;
WebServiceConnector.operation
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
componentInstance.operation;
Description
Property; the name of an operation that appears within the SOAP port in a WSDL file.
Example
This example returns data from a remote web service and traces a tip and how long the service
takes to return the data to the SWF file. Drag a WebServiceConnector component into your
library, and enter the following code on Frame 1 of the timeline:
import mx.data.components.WebServiceConnector;
var startTime:Number;
var wscListener:Object = new Object();
wscListener.result = function(evt:Object) {
var resultTimeMS:Number = getTimer()-startTime;
trace("result loaded in "+resultTimeMS+" ms.");
trace(evt.target.results);
};
wscListener.send = function(evt:Object) {
startTime = getTimer();
};