File XmlRpc.lua

Functions

XmlRpc:new (t) Constructor for new instance.
XmlRpc:newClass (t) Constructor for extending class.
XmlRpc:sendAndReceive (t, ...) send rpc request, and fetch expected reply.


Functions

XmlRpc:new (t)
Constructor for new instance.

Parameters:

  • t: parameter table may include url, or it may be supplied later.
XmlRpc:newClass (t)
Constructor for extending class.

Parameters:

  • t:
XmlRpc:sendAndReceive (t, ...)
send rpc request, and fetch expected reply.

Parameters:

  • t: (table or string, required)
    If string, its the remote procedure name, and default timeout is implied.
    If table, it must have procName in it, and optional timeout.
  • ...: remote procedure parameters.

Return values:

  1. sts (boolean, always) true iff worked.
  2. msgOrValues (string or table) error messages or array of return values, properly typed (may be empty table, but wont be nil).

Valid XHTML 1.0!