Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.rpc.soap.mxml 
Operation 
Packagemx.rpc.soap.mxml
Classpublic class Operation
InheritanceOperation Inheritance Operation Inheritance AbstractOperation Inheritance AbstractInvoker Inheritance EventDispatcher Inheritance Object
Implements IMXMLSupport

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

An Operation used specifically by WebServices. An Operation is an individual method on a service. An Operation can be called either by invoking the function of the same name on the service or by accessing the Operation as a property on the service and calling the send() method.



Public Properties
 PropertyDefined By
 Inheritedarguments : Object
The arguments to pass to the Operation when it is invoked.
AbstractOperation
  concurrency : String
The concurrency for this Operation.
Operation
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedendpointURI : String
The location of the WebService for this Operation.
Operation
 InheritedforcePartArrays : Boolean
Determines whether or not a single or empty return value for an output message part that is defined as an array should be returned as an array containing one (or zero, respectively) elements.
Operation
 InheritedheaderFormat : String
Determines how the SOAP encoded headers are decoded.
Operation
 Inheritedheaders : Array
[read-only] Accessor to an Array of SOAPHeaders that are to be sent on each invocation of the operation.
Operation
 InheritedhttpHeaders : Object
Custom HTTP headers to be sent to the SOAP endpoint.
Operation
 InheritedignoreWhitespace : Boolean
Determines whether whitespace is ignored when processing XML for a SOAP encoded request or response.
Operation
 InheritedlastResult : Object
[read-only] The result of the last invocation.
AbstractInvoker
 InheritedmakeObjectsBindable : Boolean
[override] When this value is true, anonymous objects returned are forced to bindable objects.
Operation
 InheritedmultiplePartsFormat : String
Determines the type of the default result object for calls to web services that define multiple parts in the output message.
Operation
 Inheritedname : String
The name of this Operation.
AbstractOperation
 InheritedoperationManager : Function
This property is set usually by framework code which wants to modify the behavior of a service invocation without modifying the way in which the service is called externally.
AbstractInvoker
 Inheritedproperties : Object
This is a hook primarily for framework developers to register additional user specified properties for your operation.
AbstractOperation
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 Inheritedrequest : Object
The request of the Operation is an object structure or an XML structure.
Operation
 InheritedresultElementType : Class
Like resultType, used to define the ActionScript class used by a given operation though this property only applies to operations which return a multi-valued result (e.g.
AbstractInvoker
 InheritedresultFormat : String
Determines how the Operation result is decoded.
Operation
 InheritedresultHeaders : Array
[read-only] The headers that were returned as part of the last execution of this operation.
Operation
 InheritedresultType : Class
Specifies an optional return type for the operation.
AbstractInvoker
 Inheritedservice : AbstractService
[read-only] Provides convenient access to the service on which the Operation is being invoked.
AbstractOperation
  showBusyCursor : Boolean
Whether this operation should show the busy cursor while it is executing.
Operation
 InheritedxmlSpecialCharsFilter : Function
Specifies a custom function used to escape XML special characters before encoding any simple content.
Operation
Public Methods
 MethodDefined By
  
Operation(webService:WebService = null, name:String = null)
Creates a new Operation.
Operation
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
 Inherited
Adds a header that is applied only to this Operation.
Operation
 Inherited
addSimpleHeader(qnameLocal:String, qnameNamespace:String, headerName:String, headerValue:String):void
Adds a header that is applied only to this Operation.
Operation
  
[override] Cancels the last service invocation or an invokation with the specified ID.
Operation
 Inherited
Clears the headers for this individual Operation.
Operation
 Inherited
clearResult(fireBindingEvent:Boolean = true):void
Sets the result property of the invoker to null.
AbstractInvoker
 Inherited
Dispatches an event into the event flow.
EventDispatcher
 Inherited
getHeader(qname:QName, headerName:String = null):SOAPHeader
Returns a header if a match is found based on QName localName and URI.
Operation
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
removeHeader(qname:QName, headerName:String = null):void
Removes the header with the given QName from all operations.
Operation
 Inherited
Executes the method.
AbstractOperation
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
This hook is exposed to update the lastResult property.
AbstractInvoker
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Events
 Event Summary Defined By
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active.EventDispatcher
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.EventDispatcher
 InheritedDispatched when an Operation call fails.AbstractOperation
 InheritedDispatched when an Operation invocation returns with SOAP headers in the response.Operation
 InheritedDispatched when an Operation invocation successfully returns.AbstractOperation
Property Detail

concurrency

property
concurrency:String

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The concurrency for this Operation. If it has not been explicitly set the setting from the WebService will be used.



Implementation
    public function get concurrency():String
    public function set concurrency(value:String):void

showBusyCursor

property 
showBusyCursor:Boolean

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Whether this operation should show the busy cursor while it is executing. If it has not been explicitly set the setting from the WebService will be used.



Implementation
    public function get showBusyCursor():Boolean
    public function set showBusyCursor(value:Boolean):void
Constructor Detail

Operation

()Constructor
public function Operation(webService:WebService = null, name:String = null)

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Creates a new Operation.

Parameters
webService:WebService (default = null) — The web service upon which this Operation is invoked.
 
name:String (default = null) — The name of this Operation.
Method Detail

cancel

()method
override public function cancel(id:String = null):mx.rpc:AsyncToken

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Cancels the last service invocation or an invokation with the specified ID. Even though the network operation may still continue, no result or fault event is dispatched.

Parameters

id:String (default = null) — The messageId of the invocation to cancel. Optional. If omitted, the last service invocation is canceled.

Returns
mx.rpc:AsyncToken — The AsyncToken associated with the call that is cancelled or null if no call was cancelled.