[FoRK] Re: [Twisted-Python] Spread or SOAP (fwd from
eugen at leitl.org
Tue Jul 6 22:40:57 PDT 2004
----- Forwarded message from Stephen Waterbury <golux at comcast.net> -----
From: Stephen Waterbury <golux at comcast.net>
Date: Tue, 06 Jul 2004 21:19:07 -0400
To: Twisted discussion stuff <twisted-python at twistedmatrix.com>
Subject: Re: [Twisted-Python] Spread or SOAP
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040229
Reply-To: Twisted discussion stuff <twisted-python at twistedmatrix.com>
Sam Couter wrote:
>David Ripton <dripton at ripton.net> wrote:
>>If you like the basic idea of SOAP (client/server RPC via XML over http),
>>I think XML-RPC (which is basically an early draft of SOAP) is fine.
>>Then feeping creaturism set in, and SOAP (plus the ring of associated
>>cruft like WSDL) is no longer simple.
>WSDL is one of the very few redeeming features of SOAP - it's the
>equivalent of CORBA's IDL, ...
... only it's in XML -- ooo, isn't that lovely! Not. 8^P
IDL was more elegant.
>... and allows you to define an interface and what
>types it expects. For languages less dynamic than python, the WSDL can be
>used to generate stub and skeleton code in an automated fashion.
>Without WSDL, that code has to be written by hand. That's a menial, error
>prone and BORING task. Other RPC systems worked out not to do that
>For languages as dynamic as python, it allows code to dynamically
>interrogate an interface to find what functions it provides.
IMNSHO, these capabilities are okay, but very overrated. Stub and
skeleton code is usually pretty trivial, and could be auto-generated
using much simpler, more natural, and better-supported approaches
than WSDL. Seen any WSDL tools lately? Me neither.
>>If pure request-response with just basic types is all you need, then
>>either will work fine. (So will SOAP, or CORBA for that matter if
>>firewalls don't preclude it -- there'll just be more docs to read.)
>Both SOAP and CORBA allow you to define complex objects to be marshalled
>over the wire. Neither are limited to simple types. CORBA is not limited
>to simple request-response.
>With CORBA the remote end can get a stub (object reference) that they can
>call remote methods on (callbacks). Object references can be passed back
>and forth all over the place, and the stub knows where to send the
>callback requests to find the original implementation of that object.
>SOAP is value-object (structured data, no methods) only.
>As far as I can tell, PB is a python-only equivalent to CORBA.
Not exactly, but I'll let the more PB-savvy types respond to this.
Maybe Brian? ;) A very important distinction is that PB is, by
design, not "transparent", as CORBA tries to be. One reason for
this is that quite often it's important for your application to
know what's remote and what's local.
But hey, RTFM -- the PB howtos are pretty good, methinks! ;)
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
----- End forwarded message -----
Eugen* Leitl <a href="http://leitl.org">leitl</a>
ICBM: 48.07078, 11.61144 http://www.leitl.org
8B29F6BE: 099D 78BA 2FD3 B014 B08A 7779 75B0 2443 8B29 F6BE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
Url : http://lair.xent.com/pipermail/fork/attachments/20040707/a8beed3a/attachment.pgp
More information about the FoRK