What's the best SOAP client library for Python, and where is the documentation for it?[转]


74down votefavorite

54

I've never used SOAP before and I'm sort of new to Python. I'm doing this to get myself acquainted with both technologies. I've installed SOAPlib and I've tried to read their Client documentation, but I don't understand it too well. Is there anything else I can look into which is more suited for being a SOAP Client library for Python?

Edit: Just in case it helps, I'm using Python 2.6.

python soap soap-client


link|edit

edited Dec 14 '09 at 22:20

Peter Mortensen
3,67431333

asked Oct 15 '08 at 19:50

blackrobot
84111123

65% accept rate


Does it have to be SOAP, such as using pre-existing web services? Python's xmlrpclib is dead simple to use and I've migrated our SOAP services to XMLRPC with it. – Kirk Strauser Oct 16 '08 at 1:03

By the way, I just went through and rated everyone up who'd been down-rated for no apparent reason. – Kirk Strauser Oct 16 '08 at 14:50
4  

Sometimes one just want to connect to service that is ONLY provided over SOAP so yes - good python SOAP lib is something that one will sooner or later need. One won't have any chance to convince service provider to replace SOAP with something "cleaner"... – romke Sep 23 '09 at 20:24

feedback

15 Answers

activeoldestvotes


up vote96down voteaccepted

Unfortunately, at the moment, I don't think there is a "best" Python SOAP library. Each of the mainstream ones available has its own pros and cons.

Older libraries:

  • SOAPy: Was the "best," but no longer maintained. Does not work on Python 2.5+
  • ZSI: Very painful to use, and development is slow. Has a module called "SOAPpy", which is different than SOAPy (above).

"Newer" libraries:

  • SUDS: Very Pythonic, and easy to create WSDL-consuming SOAP clients. Creating SOAP servers is a little bit more difficult.
  • soaplib: Creating servers is easy, creating clients a little bit more challenging.
  • ladon: Creating servers is much like in soaplib (using a decorator). Ladon exposes more interfaces than SOAP at the same time without extra user code needed.
  • pysimplesoap: very lightweight but useful for both client and server - includes a web2py server integration that ships with web2py.

Of the above, I've only used SUDS personally, and I liked it a lot.


link|edit

edited Jun 16 at 18:03

community wiki

5 revs, 4 users 84%
Samat Jain


Python 2.5.2, SOAPpy 0.12.0 and my SOAP clients work. – bortzmeyer Oct 16 '08 at 9:45

Looks like you misspelled SOAPpy. Or do soappy and soapy both exist? Either way you might want to edit to clarify – amarillion May 15 '09 at 19:15

SOAPy and SOAPpy are actually different. I've edited to clarify, and turned the post into a community wiki. – Samat Jain May 21 '09 at 20:16
4  

+1 for SUDS, great library! I ran into problems using SUDS with HTTPS web services behind a proxy. Turns out it is a known Python urllib2 issue. See my answer for more details. – sstock Aug 6 '09 at 8:35

I've personally, had a lot of success with SOAPpy. Although, I've occasionally had to write some wrappers to fix some things. ( .NET consuming, WSDL serving ) – sfossen Oct 20 '10 at 15:41

欢迎加群互相学习,共同进步。QQ群:iOS: 58099570 | Android: 330987132 | Go:217696290 | Python:336880185 | 做人要厚道,转载请注明出处!http://www.cnblogs.com/sunshine-anycall/archive/2011/08/11/2135189.html

时间: 2024-09-29 13:38:52

What's the best SOAP client library for Python, and where is the documentation for it?[转]的相关文章

分布式缓存系统Memcached简介与实践(.NET memcached client library)

原文:分布式缓存系统Memcached简介与实践(.NET memcached client library) 缘起: 在数据驱动的web开发中,经常要重复从数据库中取出相同的数据,这种重复极大的增加了数据库负载.缓存是解决这个问题的好办法.但是ASP.NET中的虽然已经可以实现对页面局部进行缓存,但还是不够灵活.此时Memcached或许是你想要的. Memcached是什么?Memcached是由Danga Interactive开发的,高性能的,分布式的内存对象缓存系统,用于在动态应用中减

日志服务(原SLS)新功能发布(3)--多实例协同消费库(loghub client library)

使用场景 loghub client library是对LogHub消费者提供的高级模式,解决多个消费者同时消费logstore时自动分配shard问题.例如在storm.spark streaming场景中多个消费者情况下,自动处理shard的负载均衡,消费者failover等逻辑.用户只需专注在自己业务逻辑上,而无需关心shard分配.CheckPoint.Failover等事宜. 举一个例子而言,用户需要通过storm进行流计算,启动了A.B.C 3个消费实例.在有10个shard情况下,

Microsoft AJAX Client Library规范的实例

MSDN 帮助: ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.chs/dv_vwdcon/html/285e3a65-b42e-42c5-952d-baf184057899.htm Type.registerNamespace("Demo"); Demo.Person = function(firstName, lastName, emailAddress) { this._firstName = firstName; this._lastName = l

Awesome Python

    Awesome Python      A curated list of awesome Python frameworks, libraries, software and resources. Inspired by awesome-php. Awesome Python Environment Management Package Management Package Repositories Distribution Build Tools Interactive Interp

Machine and Deep Learning with Python

Machine and Deep Learning with Python Education Tutorials and courses Supervised learning superstitions cheat sheet Introduction to Deep Learning with Python How to implement a neural network How to build and run your first deep learning network Neur

A C# SOAP Apache Client(4.26的好文章。Good)

apache|client IntroductionFirst of all, let me tell you that I am not a C# expert. I am primarily a Java developer but have been experimenting C# and the .NET platform. Basically I am developing a SOAP Web Service using Java and Apache SOAP, and have

Python中SOAP项目的介绍及其在web开发中的应用_python

SOAP.py 客户机和服务器 SOAP.py 包含的是一些基本的东西.没有 Web 服务描述语言(Web Services Description Language,WSDL)或者任何其它附加的东西,只有用 Python 实现的 SOAP 客户机和服务器的透明支持.甚至这个包中的一个很好的功能也只是与基础架构相关:SOAP.py 支持安全套接字层(SSL)用于加密的 SOAP 传输.为使用这个功能,您必须安装 M2Crypto,M2Crypto 是一个库,包含各种加密工具和格式,从 RSA 和

实例讲解:Java中的SOAP技术

开始之前,我想就本文即将讨论的主题和读者需要具备的起点知识做一些必需的描叙.本文的主题是讨论SOAP技术,我们将尽可能的讲得通俗易懂一些,所以,我们引入了一个普通的"Hello World"范例来给读者说明它们是怎么运作的,让读者知道它们的运作方式.我认为,如果光看官方文档是很难开始学习这门新技术的,官方文档中包含大量的范例,并解释了所有的特性和优点,但是没解释它们的运作方式.在这篇文章中,我不打算只肤浅的解释SOAP技术的定义,我们假设读者熟悉JAVA语言,Web技术,具有XML语言

MYSQL 新版出现" Client does not support authentication protocol requested by server; consider..

client|mysql|request|server MYSQL 帮助:A.2.3 Client does not support authentication protocolMySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. If you upgrade the