module XmlRpcServer:XmlRpc Light server.sig..end
let server = new XmlRpcServer.cgi () in
server#register "demo.sayHello"
(fun _ -> `String "Hello!");
server#run ()
By inheriting from XmlRpcServer.base, all servers provide
the following introspection functions by default: system.listMethods,
system.getCapabilities. To prevent their use, use server#unregister.
Additionally, the methods system.methodHelp and system.methodSignature
will be made available if at least one method help or method signature is
provided.
typeparam_type =[ `Array
| `Binary
| `Boolean
| `DateTime
| `Double
| `Int
| `String
| `Struct
| `Undefined ]
class virtual base :object..end
class type server =object..end
class cgi :unit ->server
class netplex :?parallelizer:Netplex_types.parallelizer -> ?handler:string -> unit ->server
val invalid_method : string -> 'aXmlRpc.Error indicating a method name not found.val invalid_params : unit -> 'aXmlRpc.Error indicating invalid method parameters.