You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jarek Kucypera <jk...@mikrozet.wroc.pl> on 2007/03/15 19:14:31 UTC

[axis2 1.1.1] Pojo service & date fields

I deploy a POJO service, which operates on records that contain fields
created from java.util.Date. In the resulting (automatically generated)
WSDL, those fields are defined like this:

<xs:element name="statusLastUpdated" type="xs:dateTime"/>

But when the service returns object with such a field set to null,
the field appears in the soap message as nil, like this:

<statusLastUpdated xsi:nil="true" ... />

So it looks like this field is actually "nillable", bot the WSDL does
not add nillable="true" tag to the field description, as you can see
above.
Is this an issue ? And should I adjust the WSDL (I need the dates set to
null), or maybe this is legal from a formal point of view ?

J.K.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org