What's the best way to use web services in python?

I have a medium sized application that runs as a .net web-service which I do not control, and I want to create a loose pythonic API above it to enable easy scripting.

I wanted to know what is the best/most practical solution for using web-services in python.

Edit: I need to consume a complex soap WS and I have no control over it.


Jython and IronPython give access to great Java & .NET SOAP libraries.

If you need CPython, ZSI has been flaky for me, but it could be possible to use a tool like Robin to wrap a good C++ SOAP library such as gSOAP or Apache Axis C++


If I have to expose APIs, I prefer doing it as JSON. Python has excellent support for JSON objects (JSON Objects are infact python dictionaries)


Most of the packages on python that a SOAP service through them can be called works on python 2.x, but had problems on Python 3.x

The best fit for python 3.x that I've found is suds-jurko

链接地址: http://www.djcxy.com/p/41780.html

上一篇: 如何用Scala(50.0 / 51.0)发布更新的类文件版本?

下一篇: 在python中使用web服务的最佳方式是什么?