thanks, I'll take care of it - give me a bit of time please but the fix will
be on the trunk soon

cheers, Sergey

On Fri, Dec 17, 2010 at 7:38 PM, rahulsom <[email protected]> wrote:

>
> I've created a ticket (CXF-3198) and attached the patch to it.
> Thanks.
>
> R,
> rahul
>
> Sergey Beryozkin-5 wrote:
> >
> > Yes, it is just a bug. In addition to updating the Produces/Consumes, you
> > might also want to
> > update it to extend
> > org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider so that users
> > can just inject required media types
> >
> > cheers, Sergey
> >
> > On Thu, Dec 16, 2010 at 6:59 PM, Daniel Kulp <[email protected]> wrote:
> >
> >> 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
> >>
> >
> >
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/XmlBeans-with-contentType-text-xml-doesn-t-work-tp3308350p3309856.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to