org.jivesoftware.xiff.data.rpc
class XMLRPC
Object
|
+--org.jivesoftware.xiff.data.rpc.XMLRPC
class XMLRPC extends Object
Implements client side XML marshalling of methods and parameters into XMLRPC. For more information on RPC over XMPP, see http://www.jabber.org/jeps/jep-0009.html.
- Author:Sean Treadway
- Since:2.0.0
Method Documentation
fromXML
public static function fromXML (
xml: XMLNode): Array
Extract and marshall the XML-RPC response to Flash types.
- Parameters:
xml The XML containing the message response - Returns: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
public static function toXML (
parent: XMLNode,
method: String,
params: Array): 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 typed parameters.
- Returns:XMLNode containing the XML marshalled result
- XMLRPC.as, Last Modified: 3/10/2005 10:13:24 PM