I think you need to implement a javax.ws.rs.ext.MessageBodyWriter for
any parameter types that are not natively supported by jersey. Likewise
to return an arbitrary type in the response you need to implement
javax.ws.rs.ext.MessageBodyReader for that type. I am sure there are
examples in jersey samples project fro this.
On 11/24/2011 07:45 AM, indhums2011 wrote:
> Hello,
>
> I am now trying to create a jersesy client in java for a rest api. I
> have a method in the api that accepts String and a class object as
> arguments. Then how can I pass these values to the method. Can anybody plz
> help me??
>
> my method is createForm(string formname, string title, String description,
> Question question);
>
> Question is a class whichcontain title,descritpion and type . I have to call
> this method from my client.
>
> Also I have to know how to pass array objects to jersey?
>
> Thanks in advance
>
> Thanks and Regards,
>
>
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Passing-an-object-to-rest-service-using-jersey-tp7027988p7027988.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
--
Regards,
Farrukh
Web: http://www.wellfleetsoftware.com