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 D8CD5BCAC for ; Tue, 24 May 2005 18:32:13 +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 j4OGWDlW018073 for ; Tue, 24 May 2005 18:32:13 +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 SAA08252 for ; Tue, 24 May 2005 18:32:12 +0200 (MET DST) Received: from plover.csun.edu (plover.csun.edu [130.166.1.24]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4OGWBGU029190 for ; Tue, 24 May 2005 18:32:12 +0200 Received: from puffin.csun.edu (puffin.csun.edu [130.166.1.21]) by plover.csun.edu (MOS 3.5.4-GR) with ESMTP id BPM91034; Tue, 24 May 2005 09:32:09 -0700 (PDT) Received: from [130.166.10.77] (s010n077.csun.edu [130.166.10.77]) by puffin.csun.edu (MOS 3.5.4-GR) with ESMTP id DIV14436 (AUTH eric); Tue, 24 May 2005 09:32:07 -0700 (PDT) Message-ID: <42935701.8050403@itkinetix.com> Date: Tue, 24 May 2005 09:32:01 -0700 From: Eric Stokes User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] More on SOAP References: <20050513220936.GA7588@furbychan.cocan.org> In-Reply-To: <20050513220936.GA7588@furbychan.cocan.org> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4293570D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4293570B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 trivial:01 ocaml:01 parsing:01 mli:01 val:01 val:01 mli:01 stub:01 tarball:01 ocaml:01 pxp:01 ocamlnet:01 pcre:01 campaign:98 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: I like the camlp4 approach you've used very much. I'm sure it was refreshing not to have to invent yet another interface definition language. Richard Jones wrote: >I've written a very trivial SOAP client in pure OCaml. I'm interested >in what people think about the approach I've used. > >Instead of parsing WSDL, what I'm doing is allowing you to define the >interface as a familiar .mli file, as in the example below: > >---------------------------------------------------------------------- >type campaign = { > dailyBudget : int; > id : int; > name : string; >} > >val hello : string -> string >val goodbye : string -> string >val concat : string -> string -> string >val show : campaign -> unit >---------------------------------------------------------------------- > >The .mli file is then parsed using camlp4 macros and converted into >stub functions. These can be called, and generate real SOAP calls to >the remote SOAP server. > >I have a very early, experimental package for people to play with. >This tarball contains a Perl server (based on SOAP::Lite) and the >OCaml client. > >http://annexia.org/tmp/simplesoap-0.0.1.tar.gz > >It requires PXP, ocamlnet, equeue and PCRE. > >Any type of feedback is very welcome. > >Rich. > > >