On 03/04/13 22:05, svasanta wrote:
Hi,
I am using CXF 2.6.3.  I want create a REST API which can take array of
integers.


     @POST
     @Path("datasource/inactivate")
     @Consumes(MediaType.APPLICATION_JSON)
     public void activate(Integer[] datasourceIds)

But when I send a POST request with json payload [2332], rest API is not
getting invoked.  It says methodcna not be found.  What is the issue ? Am i
missing something ?

One thing I can spot is that the default JSON (Jettison) provider won't process an array directly - consider experimenting with a Jackson provider instead

Cheers, Sergey
Thanks
-Siva



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Integer-array-as-POST-request-tp5725786.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to