On Thursday 16 December 2010 1:30:13 pm rahulsom wrote: > I'm using CXF with JAXRS and XmlBeans. I had been testing my rest service > with contentType=application/xml and it works. > Then someone tested it with contentType=text/xml and got a 415 http code. > > I looked at > http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/o > rg/apache/cxf/jaxrs/provider/XMLBeansElementProvider.java > > It looks like the provider only deals with application/xml. > > I've created a custom implementation the consumes and produces > "application/xml", "application/*+xml", "text/xml". > > Is there a reason that this provider only serves application/xml and I > should be using something else? Or is it a bug?
Likely a bug. Could you file it and attach a patch that adds the extra types? Thanks! -- Daniel Kulp [email protected] http://dankulp.com/blog
