Menu

#227 Error importing modules generated by wsdl2py

v2.0
open
nobody
zsi (169)
5
2007-12-17
2007-12-17
No

WSDL: http://www.cbr.ru/DailyInfoWebServ/DailyInfo.asmx?WSDL

Tried both ZSI 2.0 and 2.1a1. When importing DailyInfo_services (DailyInfo_client for 2.1):

Traceback (most recent call last):
File "./test.py", line 3, in <module>
from DailyInfo_services import DailyInfoLocator
File "/home/ilm/code/test_ZSI/DailyInfo_services.py", line 323, in <module>
NewsInfoSoapOut = ns0.NewsInfoResponse_Dec().pyclass
File "/home/ilm/code/test_ZSI/DailyInfo_services_types.py", line 286, in __init__
TClist = [self.__class__.NewsInfoResult_Dec(minOccurs=0, maxOccurs=1, nillable=False, encoded=kw.get("encoded"))]
File "/home/ilm/code/test_ZSI/DailyInfo_services_types.py", line 306, in __init__
TClist = [GED("http://www.w3.org/2001/XMLSchema","schema",lazy=False, isref=True)(minOccurs=1, maxOccurs=1, nillable=False, encoded=kw.get("encoded")), ZSI.TC.AnyElement(aname="_any", minOccurs=1, maxOccurs=1, nillable=False, processContents="strict")]
TypeError: 'NoneType' object is not callable

Discussion


Log in to post a comment.