Recommended SOAP library for Python?

8 views
Skip to first unread message

Jonathan Groll

unread,
Jun 26, 2008, 6:30:21 AM6/26/08
to ct...@googlegroups.com
I'd like to develop a SOAP server in Python - can anyone recommend SOAP.py over Zolera (ZSI) - I'm still new to SOAP on Python and would prefer some personal recommendations from someone who's tried it.

Additional costraint: it must be able to accept binary attachments (e.g. with Perl I assume SOAP::MIME would be required, how to handle attachments best in Python?)

Yes, I know, I also prefer REST, but want this service to work easily with generic .NET/java, etc.

Many thanks,
Jonathan

Simon Cross

unread,
Jun 26, 2008, 6:44:31 AM6/26/08
to ct...@googlegroups.com

We use ZSI here for both SOAP clients and servers and we've
successfully talked to .Net clients and SOAPui. As explained by the
ZSI webpage, SOAP.py is essentially deprecated and is being merged
into ZSI.

A word of warning -- SOAP (with ZSI or otherwise) is probably not
going to be easy and you'll have to test with every SOAP library you
want to be able to communicate with. You'll want to provide WSDL and
Disco files from the outset [1] and keep an eye out for differences in
support for authentication and other optional features.

[1] ZSI can funciton without them (by accepting any valid SOAP
response and converting it to an object) but this isn't supported by
the .Net implementation (for example).

Graeme Glass

unread,
Jun 26, 2008, 6:45:11 AM6/26/08
to ct...@googlegroups.com
On Thu, Jun 26, 2008 at 12:30 PM, Jonathan Groll <jonatha...@gmail.com> wrote:

I found ZSI more useful for what I needed to do.
Here is a nice run through of using SOAPpy - http://www.diveintopython.org/soap_web_services/
Another useful read. http://www.ibm.com/developerworks/library/ws-pyth5/

You can of course try this http://twistedmatrix.com/documents/current/api/twisted.web.soap.html :-)

That being said, the only SOAP I like is the one I use in the shower.

HTH,
G


Jeremy Thurgood

unread,
Jun 26, 2008, 12:01:24 PM6/26/08
to ct...@googlegroups.com
Simon Cross wrote:
> A word of warning -- SOAP (with ZSI or otherwise) is probably not
> going to be easy and you'll have to test with every SOAP library you
> want to be able to communicate with. You'll want to provide WSDL and
> Disco files from the outset [1] and keep an eye out for differences in
> support for authentication and other optional features.

This is important. Some SOAP clients and servers are unhappy with each
other (placement of namespaces was what bit us) and can cause lots of
pain and frustration.

--J

Simon Cross

unread,
Jul 3, 2008, 10:36:34 AM7/3/08
to ct...@googlegroups.com
On Thu, Jun 26, 2008 at 12:30 PM, Jonathan Groll
<jonatha...@gmail.com> wrote:
> I'd like to develop a SOAP server in Python - can anyone recommend SOAP.py
> over Zolera (ZSI) - I'm still new to SOAP on Python and would prefer some
> personal recommendations from someone who's tried it.

For those of use forced to use SOAP from Python, a new option has
emerged -- soaplib. I haven't had a look at the code yet, but the
creation of SOAP services and clients looks really nifty (@soapmethod
decorator for specifying SOAP methods, build-in WSGI App for the SOAP
server, ability to hook into SOAP calls for testing and logging). And
it can generate WSDL files (and seems to do so automatically behind
the scenes by default).

http://trac.optio.webfactional.com/wiki/soaplib

Schiavo
Simon

tpa...@gmail.com

unread,
Jul 4, 2008, 4:24:21 AM7/4/08
to Cape Town Python Users Group
We tried both, and ZSI came out tops, mainly cause of the way it
handles proxy auth'ing....

On Jun 26, 12:30 pm, "Jonathan Groll" <jonathanjgs...@gmail.com>
wrote:

doc...@gmail.com

unread,
Jul 29, 2008, 5:30:56 PM7/29/08
to Cape Town Python Users Group
Joining in late, but anyway. My limited experience in the subject
aside, the only issue I had with ZSI was that it couldn't parse the
XML being returned from the SOAP server I had the misfortune of
communicating with. Seeing as the XML had a distinctly non-standard
smell about it, I don't really blame that on ZSI.

Other than that, it was a relative breeze to use, the WSDL stubs it
generated were pretty much ready to use out of the box. We even had
some .netters sniffing around it a few times wondering how we finished
up the project so fast.
Reply all
Reply to author
Forward
0 new messages