Webservice Class (Flash Professional Only) - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

WebService class (Flash Professional
only)
ActionScript Class Name
The WebService class is part of the mx.services package and is used with the Log,
PendingCall, and SOAPCall classes. For an overview of the classes in the mx.services package,
see
"Web service classes (Flash Professional only)" on page
The WebService class is not the same as the WebServiceConnector class. The
WebServiceConnector class provides an ActionScript interface to the visual
WebServiceConnector component.
The WebService object acts as a local reference to a remote web service. When you create a
new WebService object, the WSDL file that defines the web service gets downloaded, parsed,
and placed in the object. You can then call the methods of the web service directly on the
WebService object and handle any callbacks from the web service. When the WSDL has been
successfully processed and the WebService object is ready, the
invoked. If there is a problem loading the WSDL, the
invoked.
When you call a method on a WebService object, the return value is a callback object. The
object type of the callback returned from all web service methods is
objects are normally not constructed by you, but instead are constructed automatically as a
result of the
webServiceObject.webServiceMethodName()
objects are not the result of the WebService call, which occurs later. Instead, the PendingCall
object represents the call in progress. When the WebService operation finishes executing
(usually several seconds after a method is called), the various PendingCall data fields are filled
in, and the
PendingCall.onResult
For more information about the PendingCall object, see
Professional only)" on page
Flash Player queues any calls you make before the WSDL is parsed, and attempts to execute
them after parsing the WSDL. This is because the WSDL contains information that is
necessary for correctly encoding and sending a SOAP request. Function calls that you make
after the WSDL has been parsed do not need to be queued; they are executed immediately. If
a queued call doesn't match the name of any of the operations defined in the WSDL, Flash
Player returns a fault to the callback object you were given when you originally made the call.
The WebServices API, included under the mx.services package, consists of the WebService
class, the Log class, the PendingCall class, and the PendingCall class.
mx.services.WebService
or
PendingCall.onFault
1423.
1413.
WebService.onLoad
WebService.onFault
PendingCall
method that was called. These
callback you provide is called.
"PendingCall class (Flash

WebService class (Flash Professional only)

callback is
callback is
. These
1437

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents