I am new to the REST framework, and am trying to expose a simple method which requires an array of integers and returns an array of Strings. But I am confused as to what mimetype @Produces
and @Consumes
on the method should be ? And how should the client get it ??
I have seen ways to use JAXB for sending a complex object via XML/JSON formats ; but I have yet not seen any code for primitives / arrays...can someone please help ?
Plus, I would be grateful if someone can show a similar code for SOAP service also...
Thanks !
PS : I am using Jersey/Java on Eclipse for developing the services.