I'm really a newbie with Web Services and ZSI.
I download the 2.0 version and install it without any problem. The
problem is that after run "wsdl2py -bu
http://10.8.1.8:8081/Service.asmx?WSDL" and enter into interactive
python mode in the same directory and type into the python interpreter
"import Service_services" the following error happend:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "Service_services.py", line 55, in ?
FindUserByNameSoapOut = ns0.FindUserByNameResponse_Dec().pyclass
File "Service_services_types.py", line 45, in __init__
TClist = [self.__class__.FindUserByNameResult_Dec(minOccurs=0,
maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
File "Service_services_types.py", line 74, in __init__
File "/usr/lib/python2.4/site-packages/ZSI/generate/pyclass.py", line
97, in __new__
raise AttributeError,\ AttributeError: attribute get_element_None previously defined.
Better he ;)
Looks like a bug with wildcard handling.
this problem is happening because the complexType has 2 <any> wildcards.
"set_element_None" threw me, but it is created from the "pname" and the <any> typecode has "None" for a pname. But I know I use the "Any" property to set wildcards myself, so I'm a little confused by the behavior.
Please submit a bug report and I'll try to fix this in the next couple days.
Log in to post a comment.