User Guide
Web service classes (Flash Professional only) 853
Example
The following example handles results returned from the web service method.
// handles results returned from the use of a web service method
myPendingCallObj = myWebService.methodName(params)
myPendingCallObj.onResult = function(result)
{
// catch the result and handle it for this application
ResultOutputField.text = result;
}
See also
PendingCall.response
PendingCall.request
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
rawXML = myPendingCallback.request;
Description
Property; contains the raw XML form of the current request sent with myPendingCallback =
myWebService.methodName()
. Normally, you would not have any use for
PendingCall.request, but you can use it if you are interested in the SOAP communications
that are sent over the network. To get the ActionScript version of the results of the request, use
myPendingCallback.onResult.
PendingCall.response
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
rawXML = myPendingCallback.response;
Description
Property; contains the raw XML form of the response to the most recent web service method call
sent with
myPendingCallback = myWebService.methodName(). Normally, you would not have
any use for
PendingCall.response, but you can use it if you are interested in the SOAP
communications that are sent over the network. To get the corresponding ActionScript version of
the results of the request, use
myPendingCallback.onResult.