Apache wink client code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Apache wink client code

Mohan Kumar G
Hi -  Thanks for taking time to check my email.

I am trying to set form parameters as mentioned below while calling REST
service.

Can you please provide a sample code/snippet which explains how to set form
parameters while calling rest service from Apache wink client?


resource = resource.accept(MediaType.APPLICATION_JSON);
             resource =
resource.contentType(MediaType.APPLICATION_FORM_URLENCODED);
             resource = resource.queryParam("sessionid", sid);
             resource =    resource.queryParam("sessiondata", sdata);
             resource = resource.queryParams(mvp);

Thanks and Regards
Mohan