Mapping java.util.Date to xs:date instead of xs:dateTime in JAX-WS
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
Mapping java.util.Date to xs:date instead of xs:dateTime in JAX-WS
===

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