套件 | mx.rpc.soap.mxml |
類別 | public class Operation |
繼承 | Operation Operation AbstractOperation AbstractInvoker EventDispatcher Object |
實作 | IMXMLSupport |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
send()
method.
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
arguments : Object
The arguments to pass to the Operation when it is invoked. | AbstractOperation | ||
concurrency : String
The concurrency for this Operation. | Operation | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
endpointURI : String
The location of the WebService for this Operation. | Operation | ||
forcePartArrays : 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 | ||
headerFormat : String
Determines how the SOAP encoded headers are decoded. | Operation | ||
headers : Array [唯讀]
Accessor to an Array of SOAPHeaders that are to be sent on
each invocation of the operation. | Operation | ||
httpHeaders : Object
Custom HTTP headers to be sent to the SOAP endpoint. | Operation | ||
ignoreWhitespace : Boolean
Determines whether whitespace is ignored when processing XML for a SOAP
encoded request or response. | Operation | ||
lastResult : Object [唯讀]
The result of the last invocation. | AbstractInvoker | ||
makeObjectsBindable : Boolean [覆寫]
When this value is true, anonymous objects returned are forced to
bindable objects. | Operation | ||
multiplePartsFormat : String
Determines the type of the default result object for calls to web services
that define multiple parts in the output message. | Operation | ||
name : String
The name of this Operation. | AbstractOperation | ||
operationManager : 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 | ||
properties : Object
This is a hook primarily for framework developers to register additional user
specified properties for your operation. | AbstractOperation | ||
request : Object
The request of the Operation is an object structure or an XML structure. | Operation | ||
resultElementType : 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 | ||
resultFormat : String
Determines how the Operation result is decoded. | Operation | ||
resultHeaders : Array [唯讀]
The headers that were returned as part of the last execution of this
operation. | Operation | ||
resultType : Class
Specifies an optional return type for the operation. | AbstractInvoker | ||
service : AbstractService [唯讀]
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 | ||
xmlSpecialCharsFilter : Function
Specifies a custom function used to escape XML special characters before
encoding any simple content. | Operation |
公用方法
方法 | 定義自 | ||
---|---|---|---|
Creates a new Operation. | Operation | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Adds a header that is applied only to this Operation. | Operation | ||
addSimpleHeader(qnameLocal:String, qnameNamespace:String, headerName:String, headerValue:String):void
Adds a header that is applied only to this Operation. | Operation | ||
[覆寫]
Cancels the last service invocation or an invokation with the specified ID. | Operation | ||
Clears the headers for this individual Operation. | Operation | ||
Sets the result property of the invoker to null. | AbstractInvoker | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
Returns a header if a match is found based on QName localName and URI. | Operation | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
Removes the header with the given QName from all operations. | Operation | ||
Executes the method. | AbstractOperation | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
This hook is exposed to update the lastResult property. | AbstractInvoker | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
屬性詳細資訊
concurrency | 屬性 |
showBusyCursor | 屬性 |
showBusyCursor:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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.
實作
public function get showBusyCursor():Boolean
public function set showBusyCursor(value:Boolean):void
建構函式詳細資料
Operation | () | 建構函式 |
public function Operation(webService:WebService = null, name:String = null)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Creates a new Operation.
參數webService:WebService (default = null ) — The web service upon which this Operation is invoked.
| |
name:String (default = null ) — The name of this Operation.
|
方法詳細資訊
cancel | () | 方法 |
override public function cancel(id:String = null):mx.rpc:AsyncToken
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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.
參數
id:String (default = null ) — The messageId of the invocation to cancel. Optional. If omitted, the
last service invocation is canceled.
|
mx.rpc:AsyncToken — The AsyncToken associated with the call that is cancelled or null if no call was cancelled.
|
Tue Jun 12 2018, 03:47 PM Z