Packageorg.igniterealtime.xiff.data.rpc
Classpublic class XMLRPC
InheritanceXMLRPC Inheritance Object

Implements client side XML marshalling of methods and parameters into XMLRPC.

See also

http://xmpp.org/extensions/xep-0009.html
http://www.xmlrpc.com/spec


Public Methods
 MethodDefined By
  
fromXML(xml:XML):Array
[static] Extract and marshall the XML-RPC response to Flash types.
XMLRPC
  
toXML(parent:XML, method:String, params:Array):XML
[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:XML):Array

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

Parameters

xml:XML — 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:XML, method:String, params:Array):XML

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

Parameters

parent:XML
 
method:String
 
params:Array

Returns
XML — XML containing the XML marshalled result