Just ran the included wsdl2java (CXF 2.2.3) for the first time in a while,
after having discovered I could specify alternate dateTime binding so I
don't have to work with XMLGregorianCalendars, and the resulting generated
code has a bug:
The ObjectFactory has the method:
@XmlElementDecl(namespace = "urn:neries:emsc:ws", name = "dateMin",
scope = Events.class)
@XmlJavaTypeAdapter(Adapter1 .class)
public JAXBElement<Calendar> createEventsDateMin(Calendar value) {
return new JAXBElement<Calendar>(_EventsDateMin_QNAME,
Calendar.class, Events.class, value);
}
And the Adapter1 java class has the method:
public Calendar unmarshal(String value) {
return (javax.xml.DatatypeConverter.parseDateTime(value));
}
I think that should be javax.xml.bind.DatatypeConverter
I did not see a bug in CXF JIRA.