From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id AC9EABC8E for ; Tue, 3 May 2005 15:31:05 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j43DV5oM011613 for ; Tue, 3 May 2005 15:31:05 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA19054 for ; Tue, 3 May 2005 15:31:05 +0200 (MET DST) Received: from [128.93.11.101] (buzet.inria.fr [128.93.11.101]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j43DUYNg005173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 May 2005 15:30:34 +0200 Message-ID: <42777CFA.8010904@inria.fr> Date: Tue, 03 May 2005 15:30:34 +0200 From: Alain Frisch User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] OCaml and SOAP References: <20050129103753.GA30860@furbychan.cocan.org> <20050503125024.GA4988@furbychan.cocan.org> In-Reply-To: <20050503125024.GA4988@furbychan.cocan.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 42777D19.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42777CFA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; frisch:01 frisch:01 caml-list:01 ocaml:01 ocaml:01 command-line:01 ocamlnet:01 pxp:01 stubs:01 datatype:01 stubs:01 pxp:01 ocamlnet:01 parsing:01 parsing:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Richard Jones wrote: > I've asked about OCaml and SOAP before on this mailing list and didn't > get a response. As far as I can find out, there are two > possibilities, but both seem unsuitable. OCaml-SOAP (from INRIA) - > the home page for this has disappeared in the site redesign. O'SOAP - > seems to be all about writing command-line clients and attempts no > mapping of data types. > > --- > > Is anyone interested in discussing writing a SOAP client > with me, in pure OCaml, and probably based around ocamlnet > and/or PXP? > > --- > > General plan: a tool which could take a WSDL description file and > generate OCaml stubs for functions and datatype conversions. The > stubs would use PXP to make and parse SOAP XML, and ocamlnet to > dispatch the requests off to the server. Parsing WSDL means parsing XML Schema, which is not straightforward. Stefano Zacchiroli and I have written an approximative parser for XML Schema (used in CDuce); you could use it as a starting point. I'm currently reimplementing such a parser using my OCaml+CDuce extension as the implementation language, and trying to follow closely the XML Schema spec, but I guess you won't want to switch to this experimental language just to parse XML Schema. -- Alain