Closed Falcom1234 closed 10 years ago
Thank you for this report. But I don't really know what are you missing! RequtstTemplateCreator would add a comment also for elements with a reference if the element is optional or can be repeated etc. How would you integrate the minOccurs attribute in to the generated xml?
minOccurs is used in RequestTemplateCreator to add a comment. See: RequestTemplateCreator: 44
This one was tricky to find :-)
If you use an element with a reference and set minOccurs to 0, this attribute is parsed correctly and then ignored for the creation of the actucal element.
This happens in com.predic8.wstool.creator.RequestCreator on line 48:
Here only the element.ref is used to get the new element and all attributes are ignored.
XML-Example:
Same problem is in RequestTemplateCreator