See the JIRA I just gave you. The namespace map has to know about the top-level collection and the internal types. You can't do that from a Class<?>, you need a ParameterizedType, and then you need code to walk it and add the types to the map.
On Fri, Aug 21, 2009 at 3:35 PM, Sergey Beryozkin<sergey.beryoz...@iona.com> wrote: > > Hi Benson > > AegisJSONProvider and DataBindingJSONProvider do set a namespace map which > contain a namespace for the xsi prefix. > What exactly JSON is saying ? > > Sergey > > bimargulies wrote: >> >> Now I've got problems. To make collections work in JAX-RS, I need to >> ensure that xsi:type gets written all the time. >> >> But JSON barfs on it. >> >> > > -- > View this message in context: > http://www.nabble.com/Aegis-versus-JAR-RS-versus-XSI-tp25085476p25086046.html > Sent from the cxf-dev mailing list archive at Nabble.com. > >