开发者

Python Web Services [duplicate]

开发者 https://www.devze.com 2023-02-25 07:27 出处:网络
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
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

精彩评论

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

关注公众号