跳至主要内容

关于 Python SOAP Library 的初步调查

What's the best soap client library for Python, and where is the documentation for it?

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.

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

在 IBM DeveloperWorks 站点上搜了一下,基本上介绍Python和SOAP的文章都是有点年头的了,以下是参考文章系列――The Python Web services developer
  • The world of Python Web services
  • Web services software repository, Part 3
  • Python SOAP libraries
  • Python SOAP libraries, Part 2
  • Messaging technologies compared
  • RSS for Python
  • The power of three: Python, Web services, and XSLT
  • Python SOAP libraries, Part 4
看来早期的Python主要适用SOAPpy,不过貌似现在已经不那么流行了。稍微看了一下SUDS的文档,感觉易用性很强,非常适合作为测试的工具。

评论