User Guide

842 Chapter 6: Components Dictionary
Web service classes (Flash Professional only)
The web service classes, which are found in the mx.services package, let you access web services
that use Simple Object Access Protocol (SOAP). This API is not the same as the
WebServiceConnector component API. The web service API is a set of classes that can you use
only in ActionScript code, and is common to various Macromedia products. In contrast, the
WebServiceConnector component is an API unique to Flash MX Professional 2004 and provides
an ActionScript interface to the visual WebServiceConnector component.
The following table lists the classes in the mx.services package. These classes are closely integrated,
so when first learning about this package, you may want to read the information in the order in
which it is presented in the table.
Making web service classes available at runtime (Flash Professional only)
In order to make the web service classes available at runtime, the WebServiceConnector
component must be in your FLA file’s library. This component contains the runtime classes that
let you work with web services. For details on adding these classes to your FLA file, see
Chapter 14, “Data Integration (Flash Professional Only),” in Using Flash.
Note: These classes are automatically made available to your Flash document when you add a
WebServiceConnector component to your FLA.
Log class (Flash Professional only)
ActionScript Class Name mx.services.Log
The Log class is part of the mx.services package and is intended to be used with the WebService
class. For an overview of the classes in the mx.services package, see “Web service classes (Flash
Professional only)” on page 842.
You can create a new Log object to record activity related to a WebService object. To execute code
when messages are sent to a Log object, use the
Log.onLog() callback function. There is no log
file; the logging mechanism is whatever you have used in the
onLog() callback function, such as
sending the log messages to a
trace() statement.
The constructor for this class creates a Log object that can be passed as an optional parameter to
the WebService constructor (see “WebService class (Flash Professional only)” on page 856).
Class Description
WebService class (Flash
Professional only)
Using a Web Service Definition Language (WSDL) file that defines the
web service, constructs a new WebService object for calling web
service methods and handling callbacks from the web service.
PendingCall class (Flash
Professional only)
Object returned from a web service method call that you implement to
handle the call’s results and faults.
Log class (Flash
Professional only)
Optional object used to record activity related to a WebService object.
SOAPCall class (Flash
Professional only)
Advanced class that contains information about the web service
operation, and provides control over certain behaviors.
CHAPTER 6
Components Dictionary