Packagecom.ak33m.rpc.xmlrpc
Classpublic dynamic class XMLRPCObject
InheritanceXMLRPCObject Inheritance AbstractRPCObject Inheritance mx.rpc.AbstractService
Implementsmx.core.IMXMLObject, mx.rpc.mxml.IMXMLSupport
SubclassesWPServiceRequest

XMLRPCObject can be used to make XMLRPC calls. It mimics the RemoteObject implementation with a few exceptions.


Example



Public Properties
 PropertyDefined by
 Inheritedcall : Function
AbstractRPCObject
 Inheritedconcurrency : String
Value that indicates how to handle multiple calls to the same service.
AbstractRPCObject
  contentType : String
XMLRPCObject
 Inheriteddestination : String
AbstractRPCObject
  endpoint : String
[write-only] The root url of the xmlrpc path.
XMLRPCObject
  headers : Object
Set request headers
XMLRPCObject
 Inheritedmethod : *
AbstractRPCObject
 InheritedrequestTimeout : int
AbstractRPCObject
 InheritedshowBusyCursor : Boolean
inheritDoc
AbstractRPCObject
  useProxy : Boolean
set if to use proxy
XMLRPCObject
Protected Properties
 PropertyDefined by
 Inherited_appservername : String
AbstractRPCObject
 Inherited_concurrency : String = "multiple"
AbstractRPCObject
  _contentType : String = "text/xml"
XMLRPCObject
 Inherited_destination : String
AbstractRPCObject
 Inherited_endpoint : String
AbstractRPCObject
  _gateway : XMLRPCConnection
XMLRPCObject
 Inherited_id : String
AbstractRPCObject
 Inherited_isbusy : Boolean = false
AbstractRPCObject
 Inherited_requestTimeout : Number = 0
AbstractRPCObject
 Inheritedrespondercounter : int
AbstractRPCObject
 Inherited_responders : ArrayCollection
AbstractRPCObject
 Inherited_showBusyCursor : Boolean = false
AbstractRPCObject
 Inherited_view : Object
AbstractRPCObject
Public Methods
 MethodDefined by
 Inherited
initialized(view:Object, id:String):void
AbstractRPCObject
  
XMLRPCObject
  
setCredentials(username:String, password:String):void
XMLRPCObject
  
setRemoteCredentials(username:String, password:String):void
XMLRPCObject
Protected Methods
 MethodDefined by
 Inherited
callProperty(method:*, ... args):*
Overrides the behavior of an object property that can be called as a function.
AbstractRPCObject
 Inherited
getAccess():AbstractRestriction
AbstractRPCObject
  
makeCall(method:String, args:Array):AsyncToken
This is where the RPC function call implemntation should be placed.
XMLRPCObject
  
onFault(evt:RPCEvent):void
XMLRPCObject
 Inherited
onRemoveResponder(event:Event):void
AbstractRPCObject
  
onResult(evt:RPCEvent):void
XMLRPCObject
 Inherited
send():void
AbstractRPCObject
Events
 EventSummaryDefined by
 Inherited  AbstractRPCObject
 Inherited  AbstractRPCObject
 Inherited  AbstractRPCObject
Public Constants
 ConstantDefined by
 InheritedLAST : String = "last"
[static]
AbstractRPCObject
 InheritedMULTIPLE : String = "multiple"
[static]
AbstractRPCObject
 InheritedSINGLE : String = "single"
[static]
AbstractRPCObject
Property detail
_contentTypeproperty
protected var _contentType:String = "text/xml"
contentTypeproperty 
contentType:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get contentType():String
    public function set contentType(value:String):void
endpointproperty 
endpoint:String  [write-only]

The root url of the xmlrpc path.

This property can be used as the source for data binding.

Implementation
    public function set endpoint(value:String):void

Example
endpoint="http://localhost/"

_gatewayproperty 
protected var _gateway:XMLRPCConnection
headersproperty 
headers:Object  [read-write]

Set request headers

This property can be used as the source for data binding.

Implementation
    public function get headers():Object
    public function set headers(value:Object):void

Example
var headers:Object = new Object(); headers["CustomHeaderA"] = "SomeValue"; headers["CustomHeaderB"] = "SomeValue"; xmprpcobject.headers = headers;

useProxyproperty 
useProxy:Boolean  [read-write]

set if to use proxy

This property can be used as the source for data binding.

Implementation
    public function get useProxy():Boolean
    public function set useProxy(value:Boolean):void
Method detail
makeCall()method
protected override function makeCall(method:String, args:Array):AsyncToken

This is where the RPC function call implemntation should be placed.

Parameters
method:String
 
args:Array

Returns
AsyncToken
makeConnection()method 
public function makeConnection():void
onFault()method 
protected override function onFault(evt:RPCEvent):voidParameters
evt:RPCEvent
onResult()method 
protected override function onResult(evt:RPCEvent):voidParameters
evt:RPCEvent
setCredentials()method 
public override function setCredentials(username:String, password:String):voidParameters
username:String
 
password:String
setRemoteCredentials()method 
public override function setRemoteCredentials(username:String, password:String):voidParameters
username:String
 
password:String