可以使用 suds。http://www.oschina.net/p/suds。用 pip 安装
pip install suds
然后,给你一段python的demo代码
#导入
from suds.client import Client
import os
#有些时候需要使用wsdl文件,但里面的webservice服务器的地址需要动态
demo_wsdl = os.path.join(os.path.realpath('.'),"demoService_Fix.wsdl")
if not os.path.isfile(demo_wsdl):
print 'demo WSDL file not exists!'
clientdemoService = Client("file:///"+demo_wsdl)
demoServicePath = '127.0.0.1'
clientdemoService.set_options(location='http://%s/demoWebService/services/demoWebService'%(demoServicePath))
#调用
username = 'tester'
retval = clientGoComService.service.DelUser(username)
print retval