[boston-pig] wsdl2py problem

Mark Devine mfmdevine at gmail.com
Wed Jan 2 05:25:06 MST 2008


Hi

I used wsdl2py on a wsdl file and came up with the errors below. I checked
the wsdl through Axis which does some rudementary checks and generates java
code for the wsdl. All was fine with this application. I would prefer to
work with python so I used wsdl2py. Would you have any ideas?


[me at myMachine Desktop]$ wsdl2py smi-api.types.wsdl
Traceback (most recent call last):
  File "/opt/ams/me/bin/wsdl2py", line 9, in ?
    wsdl2py()
  File "/opt/ams/me/lib/python2.4/site-packages/ZSI/generate/commands.py",
line 147, in wsdl2py
    files = _wsdl2py(options, wsdl)
  File "/opt/ams/me/lib/python2.4/site-packages/ZSI/generate/commands.py",
line 233, in _wsdl2py
    wsm.writeClient(fd)
  File "/opt/ams/me/lib/python2.4/site-packages/ZSI/generate/wsdl2python.py",
line 212, in writeClient
    sd.write(fd)
  File "/opt/ams/me/lib/python2.4/site-packages/ZSI/generate/wsdl2python.py",
line 340, in write
    print >>fd, m
  File "/opt/ams/me/lib/python2.4/site-packages/ZSI/generate/wsdl2python.py",
line 361, in __str__
    return self.content.getvalue()
  File "/opt/ams/me/lib/python2.4/site-packages/ZSI/generate/containers.py",
line 272, in getvalue
    self._setContent()
  File "/opt/ams/me/lib/python2.4/site-packages/ZSI/generate/containers.py",
line 1070, in _setContent
    ofwhat = '[%s]' %tcb.getTypecodeList()
  File "/opt/ams/me/lib/python2.4/site-packages/ZSI/generate/containers.py",
line 1790, in getTypecodeList
    self._setTypecodeList()
  File "/opt/ams/me/lib/python2.4/site-packages/ZSI/generate/containers.py",
line 1772, in _setTypecodeList
    raise  WSInteropError, WSISpec.R2203
ZSI.generate.WSInteropError: An rpc-literal binding in a DESCRIPTION MUST
refer, in its soapbind:body element(s), only to wsdl:part element(s) that
have been defined using the type attribute.

[me at myMachine Desktop]$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/boston-pig/attachments/20080102/58bfbf5a/attachment.html


More information about the boston-pig mailing list