Packageorg.igniterealtime.xiff.data.rpc
Classpublic class XMLRPC

Implements client side XML marshalling of methods and parameters into XMLRPC. For more information on RPC over XMPP, see http://xmpp.org/extensions/xep-0009.html.



Public Methods
 MethodDefined by
  
fromXML(xml:XMLNode):Array
[static] Extract and marshall the XML-RPC response to Flash types.
XMLRPC
  
toXML(parent:XMLNode, method:String, params:Array):XMLNode
[static] The marshalling process, accepting a block of XML, a string description of the remote method, and an array of flash type parameters.
XMLRPC
Method detail
fromXML()method
public static function fromXML(xml:XMLNode):Array

Extract and marshall the XML-RPC response to Flash types.

Parameters
xml:XMLNode — The XML containing the message response

Returns
Array — Mixed object of either an array of results from the method call or a fault. If the result is a fault, "result.isFault" will evaulate as true.
toXML()method 
public static function toXML(parent:XMLNode, method:String, params:Array):XMLNode

The marshalling process, accepting a block of XML, a string description of the remote method, and an array of flash type parameters.

Parameters
parent:XMLNode
 
method:String
 
params:Array

Returns
XMLNode — XMLNode containing the XML marshalled result