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
OCaml and SOAP
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-05-03 (13:31)
From: Alain Frisch <Alain.Frisch@i...>
Subject: Re: [Caml-list] OCaml and SOAP
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