Hi, it should be easy enough to get Jackson supported as part of this
flow too,
JsonpInInterceptor has an 'acceptType' property, you can set it to
application/json,
Cheers, Sergey
On 28/02/14 03:11, Jack Huang wrote:
Dear Sergey,
Thanks for your reply!
You mean I must set the JSONProvider's properties like this:
JSONProvider jsonProvider = new JSONProvider();
jsonProvider.setProduceMediaTypes(Arrays.asList("application/javascript"));
Is it right?
I saw JSONProvider depends to Jettison, but I want to use Jackson for JSON
provider, so I must modify like this:
JacksonJsonProvider jsonProvider = new JacksonJsonProvider();
This provider produces "text/json" data for the response.
Following link is my source code:
http://git.oschina.net/huangyong/smart-plugin-ws/blob/master/src/main/java/com/smart/plugin/ws/RESTHelper.java
I want to publish the REST Web Services through CXF API.
Can you tell me the way how to resove this problem in 2.7.9 (the latest
version)?
Jack Huang
--
View this message in context:
http://cxf.547215.n5.nabble.com/JSONP-is-not-works-tp5739858p5740625.html
Sent from the cxf-user mailing list archive at Nabble.com.