Hi all,
In the DataReaderImpl class (line ~131 - 150) you will find the following code:
//The jaxb class contains XMLGregorianCalendar field also needs JAXB Bridge
if (part != null && part.getTypeClass() != null) {
boolean useJAXBBridge = false;
for (Field field : part.getTypeClass().getDeclaredFields()) {
if (field.getType().equals(XMLGregorianCalendar.class)) {
useJAXBBridge = true;
break;
}
}
if (useJAXBBridge) {
return
JAXBEncoderDecoder.unmarshalWithBridge(part.getConcreteName(),
part.getTypeClass(),
part.getTypeClass().getAnnotations(),
databinding.getContextClasses(),
reader,
getAttachmentUnmarshaller());
}
}
return JAXBEncoderDecoder.unmarshall(createUnmarshaller(), reader,
part,
unwrapJAXBElement);
What is the reason to use a Bridge when a XMLGregorianCalendar is declared?
If an operation has a xs:dateTime as parameter, the bridge will be used and
no schema validation can be performed.
Kind regards
Marc
--
itServe AG
Marc Giger
Länggassstrasse 26
3000 Bern 9
Tel.: +41 31 305 16 16
Fax: +41 31 305 16 17
Direkt +41 31 305 43 27
Email [email protected]
http://www.itserve.ch