membrane / soa-model

Toolkit and Java API for WSDL, WADL and XML Schema.
http://www.membrane-soa.org/soa-model/
Apache License 2.0
94 stars 73 forks source link

RequestCreator: An empty string as default or fixed value is ignored #203

Closed Falcom1234 closed 10 years ago

Falcom1234 commented 10 years ago

If you use an empty string as default or fixed value and create a request, the value is ignored. Instead it is marked as required.

XML:

<xs:element name="EventID" type="xs:string" default=""/>

Concerned classes:

Possible fix (worked for me): Change the check of element.defaultValue and element.fixedValue to

if(element.defaultValue != null)
keshavarzi commented 10 years ago

Thank you for the bug report. We will fix it in the next version.