|
|
XmlRpc-Light
XmlRpc-Light is an XmlRpc library written in OCaml. It requires Xml-Light and Ocamlnet 2.
This software is still under development, but is already quite usable. Please send your thoughts, ideas, comments, and criticism to dave.benjamin@gmail.com.
New in version 0.6
- New XmlRpcDateTime module
- Added support for "nil" data type
- WordPress example updated to support WordPress 2.3
- oUnit test suite
New in version 0.5
- client: configurable socket timeouts
- client: basic authentication
- client: custom HTTP headers
- client: SSL support (requires command-line "curl" program)
- client: multicall class with optional lazy call behavior
- client: better interoperability with Apache XMLRPC
- client: code generation tool based on introspection functions
- server: methodHelp and methodSignature introspection functions
- server: shallow type checking of method signatures
- server: multiple signatures per method (overloading)
- both: proper text/xml Content-Type header and xml preamble
- both: 32-bit integer support
Client Example
let rpc = new XmlRpc.client "http://localhost:8000" in
let result = rpc#call "echo" [`String "hello!"] in
print_endline (XmlRpc.dump result) Server Example
let server = new XmlRpcServer.cgi () in
server#register "demo.sayHello"
(fun _ -> `String "Hello!");
server#run () 