我想使用python ZSI库实现SOAP Web服务器。我尝试了here描述的解决方案,但是在使用wsdl2dispatch
命令时遇到异常,如本书第6页所述:
wsdl2dispatch --extended mywsdl.xml
提出:
Traceback (most recent call last):
File "/usr/local/bin/wsdl2dispatch", line 11, in <module>
load_entry_point('ZSI==2.0rc3', 'console_scripts', 'wsdl2dispatch')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2649, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2303, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2313, in resolve
raise ImportError(str(exc))
ImportError: 'module' object has no attribute 'wsdl2dispatch'
我已将/usr/local/lib/python2.7/dist-packages/
添加到系统PATH
;仍然没有变化。知道我该怎么解决这个问题?
注意: this answer中描述的解决方法非常有用;但它没有使用wsdl2dispatch
命令。