XMLRPCServer | R Documentation |
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(...))
url |
the URL for the XML-RPC server. |
curl |
either a logical value indicating whether to create
a new |
class |
the name of the class to create. |
... |
name=value pairs of CURL options that are used to create a
new |
.opts |
an alternative way to specify the CURL options for the handle to be created. |
An object of class given by the value of class
.
Duncan Temple Lang
xml.rpc
server = XMLRPCServer('http://www.advogato.org/XMLRPC')
server = XMLRPCServer('http://www.advogato.org/XMLRPC', TRUE)
server = XMLRPCServer('http://www.advogato.org/XMLRPC',
verbose = TRUE,
followlocation = TRUE,
cookie = "MyCookie=abcd",
ssl.verifypeer = FALSE)
library(RCurl)
server = XMLRPCServer('http://www.advogato.org/XMLRPC',
getCurlHandle(verbose = TRUE,
followlocation = TRUE,
cookie = "MyCookie=abcd",
ssl.verifypeer = FALSE))
if(url.exists(as(server, "character")))
server$test.capitalize('abCdef')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.