User Guide
862 Chapter 6: Components Dictionary
Usage
callbackObj = myWebServiceObject.myMethodName(param1, ... paramN);
Parameters
param1, ... paramN
Various parameters, depending on the web service method that is called.
Returns
A PendingCall object to which you can attach a function for handling results and errors on the
invocation. For more information, see “PendingCall class (Flash Professional only)” on page 845.
The callback invoked when the response comes back from the WebService method is
PendingCall.onResult or PendingCall.onFault. By uniquely identifying your callback
objects, you can manage multiple
onResult callbacks, as in the following example:
myWebService = new WebService("http://www.myCompany.com/myService.wsdl");
callback1 = myWebService.getWeather("02451");
callback1.onResult = function(result)
{
// do something
}
callback2 = myWebService.getDetailedWeather("02451");
callback2.onResult = function(result)
{
// do something else
}
Description
Method; invokes a web service operation. You invoke the method directly on the web service. For
example, if your web service has the method
getCompanyInfo(tickerSymbol), you would make
the following call:
myCallbackObject.myservice.getCompanyInfo(tickerSymbol);
All invocations are asynchronous, and return a callback object of type PendingCall.
WebService.onFault
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
MyWebServiceObject.onFault = function(fault)
{
// your code here
}