<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/0c6354a37e41522a51d1e4e6e2881dcd"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2005-05-13T22:06:49"
  subject="More on SOAP"
  prev="2005/05/e70f7a4442b38c866f2eca47cddb462d"
  next="2005/05/a7326443f6c82f42c54ec9f3bf6d1258"
  next-in-thread="2005/05/87d7750fe457b70de592627e341c5df7"
  prev-thread="2005/05/e70f7a4442b38c866f2eca47cddb462d"
  next-thread="2005/05/4bb1ab0d8226ff97f4076d7cd031751b"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="More on SOAP">
<msg 
  url="2005/05/0c6354a37e41522a51d1e4e6e2881dcd"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2005-05-13T22:06:49"
  subject="More on SOAP">
<msg 
  url="2005/05/87d7750fe457b70de592627e341c5df7"
  from="Mike Lin &lt;nilekim@g...&gt;"
  author="Mike Lin"
  date="2005-05-14T21:53:59"
  subject="Re: [Caml-list] More on SOAP">
</msg>
<msg 
  url="2005/05/feb8580b4a6ba74f4723ffaffb2ed7da"
  from="Claudio Sacerdoti Coen &lt;sacerdot@c...&gt;"
  author="Claudio Sacerdoti Coen"
  date="2005-05-16T08:47:57"
  subject="Re: [Caml-list] More on SOAP">
<msg 
  url="2005/05/67c1e78787937413ce5e85eb5c193a42"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2005-05-16T09:11:13"
  subject="Re: [Caml-list] More on SOAP">
<msg 
  url="2005/05/956ebd87b4b0bbace6819a2fd0a27dbd"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2005-05-16T09:14:47"
  subject="Re: [Caml-list] More on SOAP">
</msg>
<msg 
  url="2005/05/74b7fb4253b37734d1bbd15a78a6739a"
  from="Claudio Sacerdoti Coen &lt;sacerdot@c...&gt;"
  author="Claudio Sacerdoti Coen"
  date="2005-05-16T09:17:43"
  subject="Re: [Caml-list] More on SOAP">
</msg>
</msg>
</msg>
<msg 
  url="2005/05/deccedf51511e46153d76a6b1cdb93a7"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2005-05-16T14:40:13"
  subject="Re: [Caml-list] More on SOAP">
<msg 
  url="2005/05/adf977f4e0fd617a155e83f14a26ab72"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2005-05-16T22:24:32"
  subject="Re: [Caml-list] More on SOAP">
<msg 
  url="2005/05/92458a4c4d4bc200a9ad37c4f3e4d46d"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2005-05-17T21:43:30"
  subject="Re: [Caml-list] More on SOAP">
<msg 
  url="2005/05/7dd4baaa9251ab90a80b0e935bbdf51c"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2005-05-23T21:02:07"
  subject="ANNOUNCE: OCaml SimpleSOAP 0.1.1 released">
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2005/05/d86dc5c0644770a1e596ac8ed04d2e9e"
  from="Eric Stokes &lt;gremin@i...&gt;"
  author="Eric Stokes"
  date="2005-05-24T16:32:13"
  subject="Re: [Caml-list] More on SOAP">
</msg>
</msg>
</thread>

<contents>
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 -&gt; string
val goodbye : string -&gt; string
val concat : string -&gt; string -&gt; string
val show : campaign -&gt; 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

</contents>

</message>

