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(...))
the URL for the XML-RPC server.
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.
the name of the class to create.
name=value pairs of CURL options that are used to create a
new CURLHandle
object.
an alternative way to specify the CURL options for the handle to be created.
An object of class given by the value of class
.