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

简介:

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.

link | edit

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

up vote 96 down vote accepted

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
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: 572064792 | Nodejs:329118122 做人要厚道,转载请注明出处!

















本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/sunshine-anycall/archive/2011/08/11/2135189.html ,如需转载请自行联系原作者
相关文章
|
6月前
|
Java 程序员 C语言
IT圈茶余饭后的“鄙视链” C,C++,Java,Python
IT圈茶余饭后的“鄙视链” C,C++,Java,Python
109 0
|
10天前
|
XML 缓存 监控
Python中使用SOAP消息:全面指南
本文介绍了如何在Python环境中创建、发送和接收SOAP请求,包括安装`zeep`库、创建SOAP客户端、发送请求、处理复杂类型、错误处理、自定义SOAP头、性能优化、日志记录等内容。SOAP因其标准化、安全性、可靠性和互操作性,在企业级应用中仍被广泛采用。通过本文,读者可以掌握使用Python与SOAP Web服务交互的基本方法。
|
Python
python pyinstaller “Cannot find the MXNet library“ libmxnet.dll #文件包缺失
python pyinstaller “Cannot find the MXNet library“ libmxnet.dll #文件包缺失
145 0
|
4月前
|
编译器 开发工具 C++
【Python】已解决error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build
【Python】已解决error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build
2261 0
|
5月前
|
监控 Serverless Docker
函数计算操作报错合集之遇到报错:Python Jedi client: couldn't create connection to server.是什么原因
在使用函数计算服务(如阿里云函数计算)时,用户可能会遇到多种错误场景。以下是一些常见的操作报错及其可能的原因和解决方法,包括但不限于:1. 函数部署失败、2. 函数执行超时、3. 资源不足错误、4. 权限与访问错误、5. 依赖问题、6. 网络配置错误、7. 触发器配置错误、8. 日志与监控问题。
251 0
|
1月前
|
网络协议 Python
Python‘s Standard Library :Networking
Python‘s Standard Library :Networking
|
2月前
|
SQL 数据处理 数据库
python 提取出sql语句中where的值
python 提取出sql语句中where的值
|
3月前
|
数据安全/隐私保护 Python
Python 解压还密码的压缩文件 LookupError: Couldn't find path to unrar library.
Python 解压还密码的压缩文件 LookupError: Couldn't find path to unrar library.
68 2
|
4月前
|
数据采集 小程序 数据库
20年“镇国级”IT大牛,竟搞出500页漫画Python零基础顶级教程!
乔布斯说每个人都应该学习一门编程语言。Python正热,我决定通过编程让自己习得一种思考问题的方式,这也是我在个人编程生涯中的最大收获。 我以为只能枯燥无味地学编程,直到看到本书的样章,以漫画形式让我更直观、生动地了解到什么是编程。超级喜欢这种漫画风格。我回想起自己当年学习编程语言时的情景:逼迫自己背诵和消化、吸收那些自己根本没有理解的内容。如果当时有这么一本书,我就不会学得那么艰难,然后用了那么久才摸索成为一名“攻城狮”。
|
3月前
|
Python
【Python】解决Can‘t find model ‘en‘. It doesn‘t seem to be a shortcut link, a Python package or a valid
在使用以下代码时,报错Can’t find model ‘en’. It doesn’t seem to be a shortcut link, a Python package or a valid path to a data directory.
62 1
下一篇
无影云桌面