xmlRPCResult {SSOAP} | R Documentation |
This function is used to process the response from a
method invocation via XML-RPC to a remote server.
This converts the result contained in the XML response
into either a regular R value or a XMLRPCError
object
which contains a diagnostic error message and error code.
xmlRPCHandlers
is a collection of XML-to-R converters for processing the
XML nodes in the method response into the corresponding R values.
One can call this function and then replace individual entries with
one's own specialized methods.
xmlRPCResult(txt, handlers = xmlRPCHandlers(call), simplify = TRUE, call = sys.call()) xmlRPCHandlers(call)
txt |
the XML content returned from the method invocation. |
handlers |
a |
simplify |
a logical value indicating whether to simplify the result when it is a list of length 1, i.e. to return just the child element. This is convenient for interactive use, but ensuring that one gets back a predictable type for the result is more useful in programmatic use. |
call |
the R command/expression associated with the XML-RPC request so that
this can be added to the XMLRPCError if an exception is
raised by the server. This is typically not specified by the caller,
but the default value works appropriately. |
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.omegahat.org/SSOAP http://www.xmlrpc.com/spec