Has a module called "SOAPpy", which is different than SOAPy (above). /questions/206154/whats-the-best-soap-client-library-for-python-and-where-is-the-documentation-f 用SOAPpy 编写的一个简单例子 SOAPpy包:http://pypi.python.org/pypi/SOAPpy/ A simple "Hello World" http SOAP server: Python import SOAPpy def hello(): return "Hello World" server = SOAPpy.SOAPServer(("localhost", 8080)) import SOAPpy server = SOAPpy.SOAPProxy("http://localhost:8080/") print server.hello() soaplib
%3Aaction=index 推荐使用:setuptools,安装后可以使用easy_install很方便 安装fpconst:easy_install.py fpconst SOAPpy 下载地址 :http://pywebsvcs.sourceforge.net/ >>>from SOAPpy import WSDL >>>wsdlFile = ‘http://www.webxml.com.cn instance at 0x01168A58>, u'getSu pportCity': <SOAPpy.wstools.WSDLTools.SOAPCallInfo instance at 0x011686E8 ': <SOAPpy.wstoo ls.WSDLTools.SOAPCallInfo instance at 0x01168828>, u'getSupportProvince': <SOAPpy.wstools.WSDLTools 测试自己的soap服务: >>> from SOAPpy import WSDL >>> wsdl='http://127.0.0.1:8000/hello_world/service.wsdl'
python的SOAP程序库有SOAPpy, Zeep, ladon, suds-jurko, pysimplesoap, 这里只学习Zeep库,第三方库,同样要安装。