Hi
On 03/03/14 09:51, Jack Huang wrote:
Hi,

It not works. :(

I use 2.7.9 version and set JsonpInInterceptor's acceptType value to
"application/json".
The JSON data is presented, but without callback function.

You can try it again. Thanks!

I've got it fixed:
http://git-wip-us.apache.org/repos/asf/cxf/commit/aebae33d

Note JsonpPreStreamInterceptor need to register as jaxrs:provider as opposed to jaxrs:outInterceptor.

The reason for it is that CXF out pre stream interceptors run before JAX-RS message body writers are selected. Having JsonpPreStreamInterceptor registered as JAX-RS WriterInterceptor lets us select Jackson still expecting application/json and then set a proper JSONP response type

I suspect it probably never worked with Jackson but now we have a test confirming it works...

Thanks, Sergey

Jack Huang



--
View this message in context: 
http://cxf.547215.n5.nabble.com/JSONP-is-not-works-tp5739858p5740684.html
Sent from the cxf-user mailing list archive at Nabble.com.



Reply via email to