开发者

Python Web Services [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Python Web Services

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

What tool would you recommend to use with Python to consume Web Services?

I have thought about using SOAP.py, but some of the lib开发者_开发技巧raries it relies on (PyXML) are out of date. Plus, it seems as if it is not in active dev/support anymore.

FYI: I am consuming a SOAP web service.


I'd recommend suds. It is very simple and easy to use.


Simple example:

from suds.client import Client

url = 'http://localhost:7080/webservices/WebServiceTestBean?wsdl'
client = Client(url)
result = client.service.MyMethod(args)

For more examples / tutorial see their documentation page..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜