I am working on a web service using CXF/JAXB. I am trying to modify the
generated XML schema for a date parameter.
Given the following method signature:
public void Something(Date theDate);
How can I modify theDate such that it’s schema is xs:date rather than
xs:dateTime?
What I would like to do:
public void Something(@XmlSchemaType(name=”date”)Date theDate);
I have endorsed jaxb-api v2.2.1, which has allowed me to add the
XmlElement annotation, on theDate, but I really need the XmlSchemaType
annotation (or is there a way to use the type attribute of XmlElement?)
Thanks,
Jeremy Robertson