Hi Nicolas,

Nicolasj wrote:
Hello,

I'm generating a wsdl from classes and I'm using jaxb2 binding.

I would expect for eg the XMLGregorianCalendar binded to xsd:DateTime but
it's not the case.

If I look at the code of org.codehaus.xfire.jaxb2.JaxbTypeRegistry which
extends DefaultTypeMappingRegistry but do not override any default binding.

I resolved my problem by modifying the DefaultTypeMappingRegistry, I added
ENCODED_XMLGREGORIANCALENDAR, registered this type, ... and added the
XMLGregorianCalendarType().

Yeah, this is a small oversight on our part. I'll get that in for the next release (post 1.1-RC1).
It's working but I don't think this is the right way to do as it should be
the JaxbTypeRegistry responsability !

Why JaxbTypeRegistry does "nothing", am I missing something ?

Its primary function is to tell XFire about the JaxbTypeCreator which creates JaxbTypes.
Thanks in advance,

Nicolas

ps: I'm using xFire from servicemix

--
View this message in context: 
http://www.nabble.com/jaxb2-binding-t1525093.html#a4142034
Sent from the XFire - User forum at Nabble.com.



--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog

Reply via email to