Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.rpc.http.mxml 
HTTPMultiService 
Packagemx.rpc.http.mxml
Classpublic dynamic class HTTPMultiService
InheritanceHTTPMultiService Inheritance HTTPMultiService Inheritance AbstractService Inheritance Proxy Inheritance Object
Implements IMXMLSupport, IMXMLObject

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

You use the <mx:HTTPMultiService> tag to represent an HTTPMultiService object in an MXML file. The HTTPMultiService is like the HTTPService but supports more than one operation for each individual tag.

Note: Due to a software limitation, HTTPService does not generate user-friendly error messages when using GET.

Default MXML PropertyoperationList

See also



Public Properties
 PropertyDefined By
 InheritedbaseURL : String
The URL that the HTTPService object should use when computing relative URLs.
HTTPMultiService
 InheritedchannelSet : ChannelSet
Provides access to the ChannelSet used by the service.
AbstractService
 Inheritedconcurrency : String
Value that indicates how to handle multiple calls to the same operation within the service.
HTTPMultiService
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedcontentType : String = "application/x-www-form-urlencoded"
Type of content for service requests.
HTTPMultiService
 Inheriteddestination : String
The destination of the service.
AbstractService
 Inheritedheaders : Object
Custom HTTP headers to be sent to the third party endpoint.
HTTPMultiService
 InheritedmakeObjectsBindable : Boolean = true
When true, the objects returned support data binding to UI controls.
HTTPMultiService
 Inheritedmanagers : Array
The managers property stores a list of data managers which modify the behavior of this service.
AbstractService
 Inheritedmethod : String = "GET"
HTTP method for sending the request if a method is not set explicit on the operation.
HTTPMultiService
 InheritedoperationList : Array
This serves as the default property for this instance so that we can define a set of operations as direct children of the HTTPMultiService tag in MXML.
HTTPMultiService
 Inheritedoperations : Object
The Operations array is usually only set by the MXML compiler if you create a service using an MXML tag.
AbstractService
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 InheritedrequestTimeout : int
Provides access to the request timeout in seconds for sent messages.
AbstractService
 InheritedresultFormat : String
Value that indicates how you want to deserialize the result returned by the HTTP call.
HTTPMultiService
 InheritedserializationFilter : SerializationFilter
Default serializationFilter used by all operations which do not set one explicitly
HTTPMultiService
 InheritedshowBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing.
HTTPMultiService
 InheriteduseProxy : Boolean
Specifies whether to use the Flex proxy service.
HTTPMultiService
Public Methods
 MethodDefined By
  
HTTPMultiService(rootURL:String = null, destination:String = null)
Creates a new HTTPMultiService.
HTTPMultiService
 Inherited
Disconnects the service's network connection and removes any pending request responders.
AbstractService
 Inherited
Returns an Operation of the given name.
AbstractService
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Called to initialize the service.
AbstractService
  
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
HTTPMultiService
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Logs the user out of the destination.
AbstractService
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
setCredentials(username:String, password:String, charset:String = null):void
Sets the credentials for the destination accessed by the service when using Data Services on the server side.
AbstractService
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
setRemoteCredentials(remoteUsername:String, remotePassword:String, charset:String = null):void
The username and password to be used to authenticate a user when accessing a remote, third-party endpoint such as a web service through a proxy or a remote object through a custom adapter when using Data Services on the server side.
AbstractService
 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
Events
 Event Summary Defined By
 InheritedDispatched when an HTTPMultiService call fails.HTTPMultiService
 InheritedThe invoke event is fired when an HTTPMultiService call is invoked so long as an Error is not thrown before the Channel attempts to send the message.HTTPMultiService
 InheritedDispatched when an HTTPMultiService call returns successfully.HTTPMultiService
Constructor Detail

HTTPMultiService

()Constructor
public function HTTPMultiService(rootURL:String = null, destination:String = null)

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

Creates a new HTTPMultiService. This constructor is usually called by the generated code of an MXML document. You usually use the mx.rpc.http.HTTPService class to create an HTTPService in ActionScript.

Parameters
rootURL:String (default = null) — The URL the HTTPService should use when computing relative URLS.
 
destination:String (default = null) — An HTTPService destination name in the service-config.xml file.
Method Detail

initialized

()method
public function initialized(document:Object, id:String):void

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

Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized. If you create this class in ActionScript and want it to function with validation, you must call this method and pass in the MXML document and the HTTPService's id.

Parameters

document:Object — The MXML document that created this object.
 
id:String — The identifier used by document to refer to this object. If the object is a deep property on document, id is null.