I am reframing my own question at : Returning a primitive array through REST
I am using Jersey, and I am unable to understand what codes/annotations should be added at both server and client ends to return an "array" of primitives (strings, integers, anything). I can do this very easily in SOAP...isnt there some easy way out in REST ? I got some complex ways of doing this here : how-to-serialize-java-primitives-using-jersey-
A piece of code (both server and client) would be appreciated a lot !