Im uses JAXWS 2.1.7, using some classes to run through JAXWS 'apt' to generate WSDL. For dates I use
@XmlSchemaType(name="time")
private Date wakeupTime;
and this generates a schema with xs: time, but when it all comes out in XML, this value is like
<wakeupTime>1901-01-01T01:00:00 +10</wakeupTime>
I want ONLY time to arrive! I think I want to use my own converter to say that xs: time + java.util.Date should be printed and parsed in this way, but I cannot see that I can pass the binding file to the apt procedure. I can not (for historical and other reasons) use XMLGregorianCalendar- it should be java.util.Date. How to specify custom binding for apt tool in jaxb
source
share