Python 有哪些 SOAP 客户端库,它们的文档在哪里? [英] What SOAP client libraries exist for Python, and where is the documentation for them?

查看:121
本文介绍了Python 有哪些 SOAP 客户端库,它们的文档在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前从未使用过 SOAP,而且我对 Python 有点陌生.我这样做是为了让自己熟悉这两种技术.我已经安装了 SOAPlib 并且我尝试阅读他们的 Client 文档,但我不太了解.还有什么我可以研究的更适合作为 Python 的 SOAP 客户端库的吗?

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?

以防万一,我使用的是 Python 2.6.

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

推荐答案

更新(2016):

如果您只需要 SOAP 客户端,则有一个维护良好的库,名为 zeep.它支持 Python 2 和 3 :)

If you only need SOAP client, there is well maintained library called zeep. It supports both Python 2 and 3 :)

更新:

除了上面提到的内容,我将参考 Python WebServices 页面,它是始终与 SOAP 和所有其他网络服务类型的所有积极维护和推荐的模块保持同步.

Additionally to what is mentioned above, I will refer to Python WebServices page which is always up-to-date with all actively maintained and recommended modules to SOAP and all other webservice types.

不幸的是,目前,我认为没有最好的"Python SOAP 库.每个可用的主流都有其优缺点.

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.

较旧的库:

  • SOAPy:是最好的",但不再维护.不适用于 Python 2.5+

  • SOAPy: Was the "best," but no longer maintained. Does not work on Python 2.5+

ZSI:使用起来很痛苦,而且开发很慢.有一个名为SOAPpy"的模块,它不同于 SOAPy(上图).

ZSI: Very painful to use, and development is slow. Has a module called "SOAPpy", which is different than SOAPy (above).

较新的"库:

  • SUDS:非常 Pythonic,并且易于创建使用 WSDL 的 SOAP 客户端.创建 SOAP 服务器有点困难.(此包不适用于 Python3.对于 Python3,请参阅 SUDS-py3)

  • SUDS: Very Pythonic, and easy to create WSDL-consuming SOAP clients. Creating SOAP servers is a little bit more difficult. (This package does not work with Python3. For Python3 see SUDS-py3)

SUDS-py3:SUDS 的 Python3 版本

SUDS-py3: The Python3 version of SUDS

spyne:创建服务器很容易,但创建客户端更具挑战性.文档有点缺乏.

spyne: Creating servers is easy, creating clients a little bit more challenging. Documentation is somewhat lacking.

ladon:创建服务器很像在 soaplib 中(使用装饰器).Ladon 可以同时公开比 SOAP 更多的接口,而无需额外的用户代码.

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:非常轻巧但对客户端和服务器都很有用 - 包括一个web2py 随附的 web2py 服务器集成.

pysimplesoap: very lightweight but useful for both client and server - includes a web2py server integration that ships with web2py.

以上,我个人只用过SUDS,非常喜欢.

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

这篇关于Python 有哪些 SOAP 客户端库,它们的文档在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆