Since no one else has said anything, let me say this is the kind of lightweight approach that makes standards people foam at the mouth, but that everyone else actually wants to use, since it can be made fast, bug-free, and without depending on a zillion other things (although you are getting there :)

Keep going.

Mike

On 5/13/05, Richard Jones <rich@annexia.org> 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.

--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs