[SWS-861] wsdl generation issue with CommonsXsdSchemaCollection Created: 17/Jan/14 Updated: 20/Mar/14 Resolved: 10/Feb/14
|Project:||Spring Web Services|
|Reporter:||Stanislaw Hein||Assignee:||Arjen Poutsma|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
while trying to generate wsdl from xsd the attributes minOccurs, maxOccurs, nillable and etc. are getting lost:
with such defined DefaultWsdl11Definition bean:
as a result am receiving wsdl (here only part of it):
could you please check this issue, because it is very important for contract-data-first approach.
|Comment by Arjen Poutsma [ 03/Feb/14 ]|
Can you elaborate on which specific attributes were lost? You mention that nillable="false" was lost, but that is not a problem, because nillable is false by default (see http://www.w3schools.com/schema/el_element.asp) and does not need to be specified.
|Comment by Stanislaw Hein [ 03/Feb/14 ]|
Sorry for bad example. I tried with nillable="true" and it didn't work too. Also minOccurs and maxOccurs didn't work.
|Comment by Arjen Poutsma [ 10/Feb/14 ]|
I'm afraid I can't reproduce this. I've added additional tests for this purpose (see https://github.com/spring-projects/spring-ws/commit/ea9e2d1d2d35e8f588bd09bd9571ad86894953b3) but it works fine for me.