Module XmlRPCClient


module XmlRPCClient: sig  end
XML-RPC Client routines



Remote method invocation

new remote xmlrpc-server method returns an object that can be used to execute the foreign method. Its simple_call method is convienience for a function that only takes one argument, and zero_call for functions without arguments. call must be used for all others.

While there's nothing stopping people from using this class directly, using functions generated by oxridl is much nicer and simpler, because it handles the conversion btween XML-RPC types and ml types automatically, for the most part. Please do so if possible.



Exceptions


exception Request_failed of string
This exception (Or XmlRPCTypes.Bad_type) is raised if there's a technical problem with the processing -- can't connect to the server, the server returned something besides valid XML-RPC xml, or whatever.
exception Request_fault of XmlRPCTypes.fault
This exception is raised if the request completes successfully, but returned a <fault> instead of a <params> in the <methodResponse> node. In other words, error generated from the server because of the request, not in the transaction. It holds a XmlRPCTypes.xrs with the fault information.


Remote calls


val client_version : string
This is the string sent as the user-agent argument in HTTP headers.
class remote : string -> string -> object  end
This class encapsulates a remote procedure.