I want to send an array of String directly using something like:
service....post(ClientResponse.class, new String[]{"one","two","three"} );
Is there a MediaType that can be used to retrieve that array of String on the server?
In my implementation I have a WARNING saying that String[] is not resolvable to a concrete type.
How can I POST an array without encapsulating it into another (@XmlRootElement) class?
See How to return Array in Jersey REST webservice? (not exactly this, but related).
JAX-RS (nor Jersey) does not support returning List of primitive types, including String. Format is not specified, so you’ll need to encapsulate your data into something and use XML/JSON (I would do that) OR you can implement your MessageBodyReader/Writer for whatever you want (even array of strings). See:
edit: JSONArray on client side: