If a java element has a null value, but the schema has minOccurs=1, then there
is no diagnosis and no element in the response.
------------------------------------------------------------------------------------------------------------------------------
Key: XFIRE-817
URL: http://jira.codehaus.org/browse/XFIRE-817
Project: XFire
Issue Type: Bug
Components: Aegis Module
Affects Versions: 1.2.3
Environment: windows, not that it matters, java 5
Reporter: benson margulies
Assigned To: Dan Diephouse
Attachments: nulltc.jar
I use the Configuration class with the Aegis binding provides to default
minOccurs to 1 and nillable to false.
I go to return an object with a null pointer in one of the fields. (type is
String).
I expected to find an empty element in the response XML. (One occurence of an
empty example of the type. The same thing as if the field had contained "".)
Instead, no element is returned At All, resulting in response XML that does not
validate according to the WSDL schema.
I'm sure you will ask, 'Well, what can XFire do for an arbitrary object-type
field with a null? An empty element is not a valid representation of THAT.'
Well, I'd argue that a fault is a better consequence than invalid XML on the
wire. I would also beg for the feature of 'doing the right thing' for Strings.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email