English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
More on SOAP
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-05-24 (16:32)
From: Eric Stokes <gremin@i...>
Subject: Re: [Caml-list] More on SOAP
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.
>It requires PXP, ocamlnet, equeue and PCRE.
>Any type of feedback is very welcome.