I'm using ZSI-2.0 to generate server code from a wsdl using wsdl2dispatch and I tried adding default values to a couple of integer elements. When I generated the code, the element defaults were all set to None. In generate/containers.py, the default value for all elements is set to None, so and 'default' attribute in the WSDL is being ignored. I added a line around line 1399 to fix the problem:
+ defaultValue = c.getAttribute('default')
this worked for the default int values but probably won't work for strings and some other types.
Log in to post a comment.