Paket | mx.rpc.soap |
Sınıf | public class Operation |
Miras Alma | Operation AbstractOperation AbstractInvoker EventDispatcher Object |
Alt Sınıflar | Operation |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
send()
method.
Özellik | Tanımlayan: | ||
---|---|---|---|
arguments : Object
The arguments to pass to the Operation when it is invoked. | AbstractOperation | ||
constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | 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 [salt okunur]
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 [salt okunur]
The result of the last invocation. | AbstractInvoker | ||
makeObjectsBindable : Boolean [geçersiz kıl]
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 [salt okunur]
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 [salt okunur]
Provides convenient access to the service on which the Operation
is being invoked. | AbstractOperation | ||
xmlSpecialCharsFilter : Function
Specifies a custom function used to escape XML special characters before
encoding any simple content. | Operation |
Yöntem | Tanımlayan: | ||
---|---|---|---|
Creates a new Operation. | Operation | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder. | 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 | ||
[geçersiz kıl]
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 | ||
Olay akışına bir olay gönderir. | EventDispatcher | ||
Returns a header if a match is found based on QName localName and URI. | Operation | ||
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder. | EventDispatcher | ||
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | ||
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | ||
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | ||
EventDispatcher nesnesinden bir dinleyiciyi kaldırır. | EventDispatcher | ||
Removes the header with the given QName from all operations. | Operation | ||
Executes the method. | AbstractOperation | ||
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | ||
This hook is exposed to update the lastResult property. | AbstractInvoker | ||
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | ||
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | ||
Belirtilen nesnenin temel değerini döndürür. | Object | ||
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder. | EventDispatcher |
Olay | Özet | Tanımlayan: | ||
---|---|---|---|---|
[broadcast olayı] Flash Player veya AIR uygulaması işletim sistemi odağına gelip etkin olduğunda gönderilir. | EventDispatcher | |||
[broadcast olayı] Çalışan Flash Player veya AIR uygulaması sistem odağını kaybettiğinde ve etkin olmayan duruma geldiğinde gönderilir. | EventDispatcher | |||
Dispatched when an Operation call fails. | AbstractOperation | |||
Dispatched when an Operation invocation returns with SOAP headers in the response. | Operation | |||
Dispatched when an Operation invocation successfully returns. | AbstractOperation |
endpointURI | özellik |
endpointURI:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The location of the WebService for this Operation. Normally, the WSDL specifies the location of the services, but you can set this property to override that location for the individual Operation.
Uygulama
public function get endpointURI():String
public function set endpointURI(value:String):void
forcePartArrays | özellik |
forcePartArrays:Boolean
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
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. This is applicable for document/literal "wrapped" web services, where one or more of the elements that represent individual message parts in the "wrapper" sequence could have the maxOccurs attribute set with a value greater than 1. This is a hint that the corresponding part should be treated as an array even if the response contains zero or one values for that part. Setting forcePartArrays to true will always create an array for parts defined in this manner, regardless of the number of values returned. Leaving forcePartArrays as false will only create arrays if two or more elements are returned.
Uygulama
public function get forcePartArrays():Boolean
public function set forcePartArrays(value:Boolean):void
headerFormat | özellik |
headerFormat:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Determines how the SOAP encoded headers are decoded. A value of
object
specifies that each header XML node will be decoded
into a SOAPHeader object, and its content
property will be
an object structure as specified in the WSDL document. A value of
xml
specifies that the XML will be left as XMLNodes. A
value of e4x
specifies that the XML will be accessible
using ECMAScript for XML (E4X) expressions.
Uygulama
public function get headerFormat():String
public function set headerFormat(value:String):void
headers | özellik |
httpHeaders | özellik |
httpHeaders:Object
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Custom HTTP headers to be sent to the SOAP endpoint. If multiple headers need to be sent with the same name the value should be specified as an Array.
Uygulama
public function get httpHeaders():Object
public function set httpHeaders(value:Object):void
ignoreWhitespace | özellik |
ignoreWhitespace:Boolean
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Determines whether whitespace is ignored when processing XML for a SOAP
encoded request or response. The default is true
and thus whitespace is not preserved. If an XML Schema type definition
specifies a whiteSpace
restriction set to
preserve
then ignoreWhitespace must first be set to false.
Conversely, if a type whiteSpace
restriction is set to
replace
or collapse
then that setting will
be honored even if ignoreWhitespace is set to false.
Uygulama
public function get ignoreWhitespace():Boolean
public function set ignoreWhitespace(value:Boolean):void
makeObjectsBindable | özellik |
makeObjectsBindable:Boolean
[geçersiz kıl] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
When this value is true, anonymous objects returned are forced to bindable objects.
Uygulama
override public function get makeObjectsBindable():Boolean
override public function set makeObjectsBindable(value:Boolean):void
multiplePartsFormat | özellik |
multiplePartsFormat:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Determines the type of the default result object for calls to web services that define multiple parts in the output message. A value of "object" specifies that the lastResult object will be an Object with named properties corresponding to the individual output parts. A value of "array" would make the lastResult an array, where part values are pushed in the order they occur in the body of the SOAP message. The default value for document- literal operations is "object". The default for rpc operations is "array". The multiplePartsFormat property is applicable only when resultFormat is "object" and ignored otherwise.
Uygulama
public function get multiplePartsFormat():String
public function set multiplePartsFormat(value:String):void
request | özellik |
request:Object
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The request of the Operation is an object structure or an XML structure. If you specify XML, the XML is sent as is. If you pass an object, it is encoded into a SOAP XML structure.
Uygulama
public function get request():Object
public function set request(value:Object):void
resultFormat | özellik |
resultFormat:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Determines how the Operation result is decoded. A value of
object
specifies that the XML will be decoded into an
object structure as specified in the WSDL document. A value of
xml
specifies that the XML will be left as XMLNodes. A
value of e4x
specifies that the XML will be accessible
using ECMAScript for XML (E4X) expressions.
Uygulama
public function get resultFormat():String
public function set resultFormat(value:String):void
resultHeaders | özellik |
resultHeaders:Array
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The headers that were returned as part of the last execution of this
operation. They match up with the lastResult
property and
are the same as the collection of headers that are dispatched
individually as HeaderEvents.
Bu özellik veri ciltleme kaynağı olarak kullanılabilir. Bu özellik değiştirildiğinde, resultForBinding
olayını gönderir.
Uygulama
public function get resultHeaders():Array
xmlSpecialCharsFilter | özellik |
xmlSpecialCharsFilter:Function
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Specifies a custom function used to escape XML special characters before encoding any simple content. Valid for all operations on the web service unless specifically overwritten on the operation level. If no function is provided, the defaults is whatever is set by the particular implementation of IXMLEncoder.
Uygulama
public function get xmlSpecialCharsFilter():Function
public function set xmlSpecialCharsFilter(value:Function):void
Operation | () | Yapıcı |
public function Operation(webService:AbstractService = null, name:String = null)
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Creates a new Operation. This is usually done directly by the MXML compiler or automatically by the WebService when an unknown operation has been accessed. It is not recommended that a developer use this constructor directly.
ParametrelerwebService:AbstractService (default = null ) — The web service upon which this Operation is invoked.
| |
name:String (default = null ) — The name of this Operation.
|
addHeader | () | yöntem |
public function addHeader(header:Object):void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Adds a header that is applied only to this Operation. The header can be provided in a pre-encoded form as an XML instance, or as a SOAPHeader instance which leaves the encoding up to the internal SOAP encoder.
Parametreler
header:Object — The SOAP header to add to this Operation.
|
addSimpleHeader | () | yöntem |
public function addSimpleHeader(qnameLocal:String, qnameNamespace:String, headerName:String, headerValue:String):void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Adds a header that is applied only to this Operation.
Parametreler
qnameLocal:String — the localname for the header QName
| |
qnameNamespace:String — the namespace for header QName
| |
headerName:String — Name of the header.
| |
headerValue:String — Value of the header.
|
cancel | () | yöntem |
override public function cancel(id:String = null):mx.rpc:AsyncToken
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | 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.
Parametreler
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.
|
clearHeaders | () | yöntem |
public function clearHeaders():void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Clears the headers for this individual Operation.
getHeader | () | yöntem |
public function getHeader(qname:QName, headerName:String = null):SOAPHeader
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Returns a header if a match is found based on QName localName and URI.
Parametreler
qname:QName — QName of the SOAPHeader.
| |
headerName:String (default = null ) — Name of a header in the SOAPHeader content (Optional)
|
SOAPHeader — Returns the SOAPHeader.
|
removeHeader | () | yöntem |
public function removeHeader(qname:QName, headerName:String = null):void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Removes the header with the given QName from all operations.
Parametreler
qname:QName — QName of the SOAPHeader.
| |
headerName:String (default = null ) — Name of a header in the SOAPHeader content (Optional)
|
header | Olay |
mx.rpc.events.HeaderEvent
özellik HeaderEvent.type =
mx.rpc.events.HeaderEvent.HEADER
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Flex 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Dispatched when an Operation invocation returns with SOAP headers in the response. A HeaderEvent is dispatched for each SOAP header.
The HEADER event type.The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
token | The token that represents the call to the method. Used in the asynchronous completion token pattern. |
cancelable | true, but the preventDefault() method has no effect. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
header | Header that the RPC call returns in the response. |
message | The Message associated with this event. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
Tue Jun 12 2018, 01:09 PM Z