[jboss-dev-forums] [Design of JBossXB] - XMLGregorianDate to xs:dateTime rather than xs:anySimpleType

asouza_2000 do-not-reply at jboss.com
Fri Mar 7 11:57:21 EST 2008


Sorry guys if this is the wrong forum to post this issue, please inform me if I should move it somewhere else.

I pretty much hope you guys can help me out here.

I, via xjc, compiled a .XSD into several classes. Automatically xs:dateTime schema types are translated to XMLGregorianCalendar java type. No problem about that. 
I then use some of the generated classes as WS parameters for a service I'm designing. No problem about that either.
The thing is that when JBoss WS generates the WSDL file from my service, it translates the XMLGregorianDate type to xs:anySimpleType. I checked it out and it seems that it should be the default behavior of JAXB.
I'd like to know how can I force the translation of XMLGregorianCalendar to xs:dateTime rather than put an annotation @XMLSchemaType in all the properties that are XMLGregorianCalendar types.

Thanks in advance,

Antonio Souza.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134911#4134911

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134911



More information about the jboss-dev-forums mailing list