Hi

On Fri, Jan 14, 2011 at 6:51 PM, James Carr <[email protected]> wrote:

> Not to resurrect old threads, but I'm curious if it has been enabled?
>

Please see https://issues.apache.org/jira/browse/CXF-3005.
Josh H. has submitted a patch which I believe should work with JSONProvider
(Jettison), Jackson, etc.

Dobes V. has commented on how to do it by extending the default
JSONProvider. I'll update the docs... Dobes, by the way, the JSONProvider
subclasses can do getContext().getHttpServletRequest(), where getContext()
returns a custom CXF MessageContext...

Josh - I'll probably go ahead and commit a patch. I can update it to do an
extra check for application/javascript. I know you were thinking about
enhancing the patch but may be you can do it after I check in your current
one ?

thanks, Sergey

I know Jersey does support it with a little bit of work.
>
> Thanks,
> James
>
>
> On Fri, Apr 16, 2010 at 7:33 AM, Sergey Beryozkin <[email protected]>
> wrote:
> > Hi
> > no, JSONP is not supported OTB. You'd need to write a custom
> > MessageBodyWriter and Reader(if reading too).
> > I'm not sure if Jackson supports it ? Jersey might support it OTB, but
> not
> > sure
> >
> > cheers, Sergey
> >
> > On Thu, Apr 15, 2010 at 10:21 PM, Jason Chaffee <[email protected]>
> wrote:
> >
> >> Does CXF support a way to return JSONP?
> >>
> >>
> >
>

Reply via email to