caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Jon Harrop <jon@ffconsultancy.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] RPCs, XML, Schemas, WSDL and SOAP
Date: Mon, 9 Jul 2007 12:47:37 +0100	[thread overview]
Message-ID: <20070709114737.GG5689@furbychan.cocan.org> (raw)
In-Reply-To: <1183979448.7083.6.camel@localhost.localdomain>

On Mon, Jul 09, 2007 at 01:10:48PM +0200, Gerd Stolpmann wrote:
> Am Freitag, den 06.07.2007, 19:57 +0100 schrieb Richard Jones:
> > Have you looked into using SunRPC?  ocamlnet provides an
> > implementation, it can be run over SSL, it's far more lightweight than
> > XML, and there's a strong chance you'll be able to interoperate with
> > clients and servers written in other languages.  
> 
> It is not only a chance, it simply works. But be warned: My SunRPC
> implementation is a very strong one, far better than what can be found
> in libc. Unfortunately, many developers have prejudices against this
> simple and robust protocol because of the weak (because old) C
> implementation.

Heh heh, tell me about it :-)

XDR is a simple, lightweight, statically-typed protocol.  SunRPC is a
simple RPC protocol built on XDR.  Unfortunately the glibc
implementation of SunRPC sucks greatly.  It is also essentially
unmaintained.  However there are alternatives (in C); for example
TI-RPC.

One "myth" of SunRPC is that it requires portmappers and UDP, which
are slow, a pain to use, make tunnelling more difficult, and have
well-known security vulnerabilities.  In fact it is easy to run SunRPC
over fixed TCP ports.

If you are considering interoperating with C or Python, or want to use
IPv6 or SSL, you might consider reading some pages I wrote on the
subject:

http://et.redhat.com/~rjones/secure_rpc/
http://et.redhat.com/~rjones/sunrpc_reconnection/
http://et.redhat.com/~rjones/xdr_tests/

and also see if you can pick up a second hand copy of this O'Reilly
book:

http://www.oreilly.com/catalog/rpc/

Rich.

-- 
Richard Jones
Red Hat


  reply	other threads:[~2007-07-09 11:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-06 16:24 Jon Harrop
2007-07-06 18:57 ` [Caml-list] " Richard Jones
2007-07-07 12:51   ` Benedikt Grundmann
2007-07-09 11:10   ` Gerd Stolpmann
2007-07-09 11:47     ` Richard Jones [this message]
2007-07-07 13:51 ` Oliver Bandel
2007-07-07 13:57   ` Jon Harrop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070709114737.GG5689@furbychan.cocan.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=jon@ffconsultancy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).