From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 4F0DEBC69 for ; Sun, 29 Jul 2007 19:52:27 +0200 (CEST) Received: from tenhost.net (tenhost.net [64.246.28.52]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id l6THqO00027579 for ; Sun, 29 Jul 2007 19:52:26 +0200 Received: (qmail 7138 invoked from network); 29 Jul 2007 12:26:15 -0500 Received: from ip72-208-52-84.ph.ph.cox.net (HELO ?192.168.1.99?) (72.208.52.84) by tenhost.net with SMTP; 29 Jul 2007 12:26:15 -0500 Message-ID: <46ACD395.4080609@ramenlabs.com> Date: Sun, 29 Jul 2007 10:51:17 -0700 From: Dave Benjamin User-Agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070622) MIME-Version: 1.0 To: caml-list Subject: ANN: XmlRpc-Light 0.4 - Now a server too Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 46ACD3D8.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocamlnet:01 netcgi:01 xmlrpc:01 gerd:01 stolpmann:01 ocamlnet:01 0.4:98 relayed:98 parsing:01 encode:01 functions:01 functions:01 benjamin:01 strings:01 I have released XmlRpc-Light 0.4, an XML-RPC library for OCaml based on Xml-Light and Ocamlnet 2. Source, downloads, and documentation are available here: http://code.google.com/p/xmlrpc-light/ This version adds support for writing servers. Two methods are currently provided: CGI (based on Netcgi2) and Netplex. The obligatory hello-world example looks like this: let server = new XmlRpcServer.cgi () in server#register "demo.sayHello" (fun _ -> `String "Hello!"); server#run () To build a Netplex server, just change "cgi" to "netplex". An example of a Netplex server including the required configuration file is in the examples/adder directory. All servers support the "system.getCapabilities" and "system.listMethods" introspection functions, as well as the "system.multicall" protocol. These can be disabled if desired by calling the "unregister" method. Other changes and improvements: - The default date-time functions use the format "20070729T10:42:00-07:00". This seems to be the most common interpretation of ISO 8601 used in XML-RPC servers. You can override this behavior by calling the "set_datetime_encode" or "set_datetime_decode" methods on the client or server. - Date-time parsing errors are now wrapped in XmlRpc.Error so that they will be relayed to clients as faults. - Error handling adheres much closer to the XML-RPC specification and its list of suggested fault codes and strings. - The client now sends a "text/xml" Content-Type header in requests. Thanks to Gerd Stolpmann for the help with Ocamlnet! Dave