Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Protocols
Protocols.XMLRPC
Protocols.XMLRPC.Client

Class Protocols.XMLRPC.Client

Description

This class implements an XML-RPC client that uses HTTP transport.

There is an optional boolean flag to get the new behavior of booleans being returned as Val instead of ints.

Example

   > Protocols.XMLRPC.Client client = Protocols.XMLRPC.Client("http://www.oreillynet.com/meerkat/xml-rpc/server.php");
   Result: Protocols.XMLRPC.Client("http://www.oreillynet.com/meerkat/xml-rpc/server.php");
   > client["system.listMethods"]();
   Result: ({ /* 1 element */
  		    ({ /* 9 elements */
  			"meerkat.getChannels",
  			"meerkat.getCategories",
  			"meerkat.getCategoriesBySubstring",
  			"meerkat.getChannelsByCategory",
  			"meerkat.getChannelsBySubstring",
  			"meerkat.getItems",
  			"system.listMethods",
  			"system.methodHelp",
  			"system.methodSignature"
  		    })
  		})
 


syntax

string|Standards.URI Protocols.XMLRPC.Client.url
int|void Protocols.XMLRPC.Client.booleanvoid Protocols.XMLRPC.Client(string|Standards.URI url, int|void boolean)