Mapping java.util.Date to xs:date instead of xs:dateTime in JAX-WS

Posted by Larsing on Stack Overflow See other posts from Stack Overflow or by Larsing
Published on 2010-05-31T08:57:36Z Indexed on 2010/05/31 9:12 UTC
Read the original article Hit count: 264

Filed under:
|
|
|

Hi all,

We hav an EJB, jws-anotated as a web service. It has a pretty complex pojo-model that generates an equally complex xsd. The pojos contain numerous java.util.Date. These all map to xs:dateTime.

This service is used as "business service" in Oracle(BEA) OSB(AquaLogic). We also have a "proxy service" which we map to the BS with XQuery (the OSB/AquaLogic way). The proxy service's xsd has xs:date for the corresponding fields. For some reason, Oracle's implementation of XQuery does not support casting from xs:date to xs:dateTime(!).

I could solve this by casting to xs:string and concat:ing with "T00:00:00", however, i would rather try to get JAX-WS to generate an xsd with xs:date instead. Only, I can't find any info on how to do this (anotations?).

Can anyone give me a hint?

Kind regards, Lars

© Stack Overflow or respective owner

Related posts about java

Related posts about datetime