Packagecom.asfusion.mate.actions.builders
Classpublic class WebServiceInvoker
InheritanceWebServiceInvoker Inheritance ServiceInvoker Inheritance AbstractServiceInvoker Inheritance BaseAction Inheritance AbstractAction
ImplementsIAction

The WebServiceInvoker tag allows you to create a Web Service (mx.rpc.soap.mxml.WebService) in your IActionList and call a method on that web service, in one step. To use this tag, you need to specify its wsdl attribute that will determine the address of the webservice. You also need to specify the method to call. In addition to those two, this tag will accept all mx.rpc.soap.WebService tag attributes (with the exception of xmlSpecialCharsFilter and operations).



Public Properties
 PropertyDefined by
  arguments : *
The property arguments allows you to pass an Object or an Array of objects when calling the function defined in the property method.
WebServiceInvoker
 InheritedchannelSet : ChannelSet
Provides access to the ChannelSet used by the service.
ServiceInvoker
 Inheriteddebug : Boolean
Whether to show debugging information for its inner-handlerss.
AbstractServiceInvoker
  description : String
The description of the service for the currently active port.
WebServiceInvoker
 Inheriteddestination : String
The destination of the service.
ServiceInvoker
  endpointURI : String
The location of the WebService.
WebServiceInvoker
 InheritedfaultHandlers : Array
A set of inner-handlers to run when the server call returns a fault.
AbstractServiceInvoker
  httpHeaders : Object
Custom HTTP headers to be sent to the SOAP endpoint.
WebServiceInvoker
  instance : WebService
If this property is null, a new WebService instance is created on the prepare method.
WebServiceInvoker
 InheritedmakeObjectsBindable : Boolean
When this value is true, anonymous objects returned are forced to bindable objects.
ServiceInvoker
 Inheritedmethod : Object
The method attribute specifies what function to call on the service instance.
ServiceInvoker
 Inheritedpassword : Object
Password to supply to setCredentials method
ServiceInvoker
  port : String
Specifies the port within the WSDL document that this WebService should use
WebServiceInvoker
 Inheritedproperties : Array
Properties allows you to add properties to the currentInstance.
BaseAction
 InheritedremotePassword : Object
Password to supply to setCredentials method
ServiceInvoker
 InheritedremoteUsername : Object
Username to supply to setCredentials method
ServiceInvoker
 InheritedrequestTimeout : int
Provides access to the request timeout in seconds for sent messages.
ServiceInvoker
 InheritedresultHandlers : Array
A set of inner-handlers to run when the server call returns a result.
AbstractServiceInvoker
  rootURL : String
The URL that the WebService object should use when computing relative URLs.
WebServiceInvoker
  service : String
Specifies the service within the WSDL document that this WebService should use.
WebServiceInvoker
  useProxy : Boolean
Specifies whether to use the Flex proxy service.
WebServiceInvoker
 Inheritedusername : Object
Username to supply to setCredentials method
ServiceInvoker
  wsdl : String
The location of the WSDL document for this WebService.
WebServiceInvoker
Protected Properties
 PropertyDefined by
 InheritedautoUnregistration : Boolean = true
When auto unregistration is true, all inner handlers will be unregistered after the first inner handlers fires.
AbstractServiceInvoker
 InheritedcurrentIndex : int = 0
Index used to store groups of inner handlers.
AbstractServiceInvoker
 InheritedcurrentInstance : * = null
The currentInstance is the Object that this class will use and modify to do its work.
AbstractAction
 Inheriteddocument : Object
A reference to the document object associated with the IActionList that contains this action item.
AbstractAction
 InheritedinnerHandlersClass : Class
Class that is used as a template to create the inner-handlers
AbstractServiceInvoker
 InheritedinnerHandlersDispatcher : IEventDispatcher
Dispatcher that will trigger the inner-handlers execution by dispatching events (ie: ResultEvent or FaultEvent).
AbstractServiceInvoker
 InheritedinnerHandlersList : Array
Inner handlers list that stores all inner handlers indexed by the currentIndex.
AbstractServiceInvoker
 Inheritedtoken : AsyncToken
Generated when making asynchronous RPC operations.
ServiceInvoker
Public Methods
 MethodDefined by
 Inherited
initialized(document:Object, id:String):void
Called automatically by the MXML compiler if the AbstractAction is set up by using a tag.
AbstractAction
 Inherited
trigger(scope:IScope):void
This method gets called when the IActionList (ex: EventHandlers) is running.
AbstractAction
Protected Methods
 MethodDefined by
 Inherited
Handler that will be fired when the first of the innerHandlers starts executing.
AbstractServiceInvoker
 Inherited
complete(scope:IScope):void
The last method that trigger calls.
ServiceInvoker
 Inherited
createInnerHandlers(scope:IScope, innerType:String, actionList:Array, innerHandlersClass:Class = null):IActionList
Creates IActionList and sets the properties: debug, type, listeners, dispatcher and inheritScope in the newly IActionList (inner-handlers).
AbstractServiceInvoker
  
prepare(scope:IScope):void
The first method that trigger calls.
WebServiceInvoker
  
run(scope:IScope):void
Where all the action occurs.
WebServiceInvoker
 Inherited
setProperties(scope:IScope):void
Where all the properties are set into the currentInstance.
BaseAction
Property detail
argumentsproperty
arguments:*  [read-write]

The property arguments allows you to pass an Object or an Array of objects when calling the function defined in the property method. You can use an array to pass multiple arguments or use a simple Object if the signature of the method has only one parameter.

The default value is undefined.

Implementation
    public function get arguments():*
    public function set arguments(value:*):void
descriptionproperty 
description:String  [read-write]

The description of the service for the currently active port.

Implementation
    public function get description():String
    public function set description(value:String):void
endpointURIproperty 
endpointURI:String  [read-write]

The location of the WebService. Normally, the WSDL document specifies the location of the services, but you can set this property to override that location.

Implementation
    public function get endpointURI():String
    public function set endpointURI(value:String):void
httpHeadersproperty 
httpHeaders:Object  [read-write]

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.

Implementation
    public function get httpHeaders():Object
    public function set httpHeaders(value:Object):void
instanceproperty 
instance:WebService  [read-write]

If this property is null, a new WebService instance is created on the prepare method. Otherwise, this instance will be used. The class that will be used to create the instance if none is provided is mx.rpc.soap.mxml.WebService.

The default value is null.

Implementation
    public function get instance():WebService
    public function set instance(value:WebService):void
portproperty 
port:String  [read-write]

Specifies the port within the WSDL document that this WebService should use

Implementation
    public function get port():String
    public function set port(value:String):void
rootURLproperty 
rootURL:String  [read-write]

The URL that the WebService object should use when computing relative URLs. This property is only used when going through the proxy. When the useProxy property is set to false, the relative URL is computed automatically based on the location of the SWF running this application. If not set explicitly rootURL is automatically set to the URL of mx.messaging.config.LoaderConfig.url.

Implementation
    public function get rootURL():String
    public function set rootURL(value:String):void
serviceproperty 
service:String  [read-write]

Specifies the service within the WSDL document that this WebService should use.

Implementation
    public function get service():String
    public function set service(value:String):void
useProxyproperty 
useProxy:Boolean  [read-write]

Specifies whether to use the Flex proxy service. The default value is false. If you do not specify true to proxy requests though the Flex server, you must ensure that the player can reach the target URL. You also cannot use destinations defined in the services-config.xml file if the useProxy property is set to false.

Implementation
    public function get useProxy():Boolean
    public function set useProxy(value:Boolean):void
wsdlproperty 
wsdl:String  [read-write]

The location of the WSDL document for this WebService. If you use a relative URL, make sure that the rootURL has been specified or that you created the WebService in MXML.

Implementation
    public function get wsdl():String
    public function set wsdl(value:String):void
Method detail
prepare()method
protected override function prepare(scope:IScope):void

The first method that trigger calls. Usually, this is where the currentInstance is created or set if needed. In this method you can also perform any code that must be done first.

Parameters
scope:IScope
run()method 
protected override function run(scope:IScope):void

Where all the action occurs. At this moment, the currentInstance is already instantiated and all the properties are already set.

Parameters
scope:IScope