Python Web Services [duplicate]
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..
精彩评论