Marco, You can probably add an @XmlType(...) annotation to the char field in your beans to make it a string. There isn't a way in JAXB to do the facets required to add the size 1 restriction though. That's a JAXB limitation.
Dan On Wednesday 23 January 2008, Marco Piraccini wrote: > I'm using CXF with jaxws and jaxb. My problem is that the "char" java > types are mapped to xs:unsignedShort (instead of xs:string with size 1 > as i expected). > > I read the jaxb 2.0 specs, but the char primitive type mapping seems > not to be defined. > > There is a quick way to configure/customize jaxb to map char to > xs:string? > > Bye, > > Marco. -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog
