XMLRPCServer function

Create an instance of an XMLRPCServer object

Create an instance of an XMLRPCServer object

The XMLRPCServer class is a means to identify a string as the URL of an XML-RPC server. We can then use this to invoke a method provided by the server either via a call to xml.rpc

or via an expression of the form server$methodName(arg1, arg2, ...).

The XMLRPCServerConnection class allows us to associate a CURLHandle object with an XML-RPC server. This connection is then used in each of the calls to that server. This allows us to reuse a single curl connection to the server and also slightly simplifies passing it to each call.

XMLRPCServer(url, curl = NULL, class = if (!is.null(curl)) "XMLRPCServerConnection" else "XMLRPCServer", ..., .opts = list(...))

Arguments

  • url: the URL for the XML-RPC server.
  • curl: either a logical value indicating whether to create a new CURLHandle object, or an instance of a CURLHandle or alternatively NULL. If CURL options are specified via the ... or .opts parameters, then a CURL handle is automatically created using these.
  • class: the name of the class to create.
  • ...: name=value pairs of CURL options that are used to create a new CURLHandle object.
  • .opts: an alternative way to specify the CURL options for the handle to be created.

Returns

An object of class given by the value of class.

Author(s)

Duncan Temple Lang

See Also

xml.rpc

  • Maintainer: Bernhard Pfaff
  • License: GPL (>= 2)
  • Last published: 2020-04-23

Useful links