The WSDL file attached causes wsdl2dispatch to fail
with a TypeErro, even though gSOAP and Eclipse validate
the WSDL.
Output:
[me@machine tmp]$ wsdl2dispatch.py -e -f MXI.wsdl
/usr/lib/python2.4/site-packages/ZSI-2.0_rc2-py2.4.egg/ZSI/generate/wsdl2dispatch.py:222:
UserWarning: Port(MXIHTTP) operation(getJobID) defined
in Binding(MXIHTTP) missing soapAction
/usr/lib/python2.4/site-packages/ZSI-2.0_rc2-py2.4.egg/ZSI/generate/wsdl2dispatch.py:222:
UserWarning: Port(MXIHTTP) operation(kill) defined in
Binding(MXIHTTP) missing soapAction
/usr/lib/python2.4/site-packages/ZSI-2.0_rc2-py2.4.egg/ZSI/generate/wsdl2dispatch.py:222:
UserWarning: Port(MXIHTTP) operation(knock) defined in
Binding(MXIHTTP) missing soapAction
/usr/lib/python2.4/site-packages/ZSI-2.0_rc2-py2.4.egg/ZSI/generate/wsdl2dispatch.py:222:
UserWarning: Port(MXIHTTP) operation(modelInfo) defined
in Binding(MXIHTTP) missing soapAction
Traceback (most recent call last):
File "/usr/bin/wsdl2dispatch.py", line 5, in ?
pkg_resources.run_script('ZSI==2.0-rc2',
'wsdl2dispatch.py')
File
"/usr/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py",
line 407, in run_script
self.require(requires)[0].run_script(script_name, ns)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py",
line 1091, in run_script
exec script_code in namespace, namespace
File "/usr/bin/wsdl2dispatch.py", line 90, in ?
File "/usr/bin/wsdl2dispatch.py", line 84, in main
File "/usr/bin/wsdl2dispatch.py", line 476, in fromWSDL
File "/usr/bin/wsdl2dispatch.py", line 358, in fromWSDL
File "/usr/bin/wsdl2dispatch.py", line 285, in
setUpMethods
File
"build/bdist.linux-i686/egg/ZSI/generate/utility.py",
line 119, in GetPartsSubNames
TypeError: unsubscriptable object
[me@machine tmp]$
offending WSDL file
Logged In: YES
user_id=1549607
The new version of the WSDL below runs cleanly. It turns out
the first wsdl has a few problems even though it passed
gSOAP's tests.
Newer version of WSDL which builds cleanly