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 Kapil Khanna <bo...@usa.net> on 2004/08/07 02:26:55 UTC

xs:date serializes date with timestamp for attributes but not elements

I am having a very strange issue:
I have a wsdl that defines a attribute to be of type xs:date and an element to
be of type xs:date.
The methods that get generated on the objects have get/set methods that accept
java.util.Date for both the element and attribute. Fine so far.
Now when i call the methods on the endpoint, and print the SOAP message to
stdout, i find that for the xs:date attribute axis inserts a date along with a
timestamp value. Where as for the xs:date element i see only a date with no
timestamp.
What going on???? How do i get the attribute to print only the date and not
the timestamp?