wsdl2py 2.1a1 fails on Atlassian JIRA WSDL

rev4sure
2008-06-21
2013-05-02
  • rev4sure
    rev4sure
    2008-06-21

    Hi,

    Trying to generate code from the Atlassian JIRA WSDL fails.
    wsdl2py supplied with ZSI version 2.0 runs fine, but I want to use ZSI 2.1 to get rid of PyXML.

    wsdl2py -b http://jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl

    Traceback (most recent call last):
    File "c:\python25\scripts\wsdl2py-script.py", line 8, in <module>
    load_entry_point('ZSI==2.1-a1', 'console_scripts', 'wsdl2py')()
    File "c:\python25\lib\commands.py", line 147, in wsdl2py
    File "c:\python25\lib\commands.py", line 240, in _wsdl2py
    File "c:\python25\lib\site-packages\zsi-2.1_a1-py2.5.egg\ZSI\generate\wsdl2python.py", line 232, in writeTypes
    File "c:\python25\lib\site-packages\zsi-2.1_a1-py2.5.egg\ZSI\generate\wsdl2pytho n.py", line 417, in fromSchema
    File "c:\python25\lib\site-packages\zsi-2.1_a1-py2.5.egg\ZSI\generate\wsdl2python.py", line 544, in fromSchemaItem
    File "c:\python25\lib\site-packages\zsi-2.1_a1-py2.5.egg\ZSI\generate\containers.py", line 2443, in setUp
    ZSI.generate.containers.ContainerError: (u'Failure in setUp: <schema
    targetNamespace="http://jira.atlassian.com/rpc/soap/jirasoapservice-v2"><complexType name="ArrayOf_tns1_RemoteUser">', u'For Array could not resolve
    ofwhat typecode(http://beans.soap.rpc.jira.atlassian.com,RemoteUser):
    <schema
    targetNamespace="http://jira.atlassian.com/rpc/soap/jirasoapservice-v2"><complexType name="ArrayOf_tns1_RemoteUser"><complexContent><restriction>')

    Anyone knows what's going one,or a possible fix?

    Cheers,
    rev