User Guide
1434 Web service classes (Flash Professional only)
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.
SOAPCall class (Flash Professional only)
ActionScript Class Name mx.services.SOAPCall
The SOAPCall class is part of the mx.services package and is an advanced class to be used with
the WebService class (see “WebService class (Flash Professional only)” on page 1437). For an
overview of the classes in the mx.data.services package, see “Web service classes (Flash
Professional only)” on page 1413.
The SOAPCall object is not constructed by you. Instead, when you call a method on a
WebService object, the WebService object returns a PendingCall object. To access the
associated SOAPCall object, use
myPendingCall.myCall.
When you create a new WebService object, it contains the methods that correspond to
operations in the WSDL URL you pass in. Behind the scenes, a SOAPCall object is created
for each operation in the WSDL as well. The SOAPCall object is the descriptor of the
operation, and as such contains all the information about that operation (how the XML
should look on the network, the operation style, and so on). It also provides control over
certain behaviors. You can get the SOAPCall object for a given operation by using the
WebService.getCall() function. There is a single SOAPCall for each operation, shared by
all active calls to that operation. Once you have the SOAPCall object, you can customize the
descriptor by doing the following:
■ Turning on/off decoding of the XML response
■ Turning on/off the delay of converting SOAP arrays into ActionScript objects
■ Changing the concurrency configuration for a given operation