users@jersey.java.net

[Jersey] Re: How to give a json string to a webservice method

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Fri, 08 Apr 2011 10:11:46 +0200

Hmm, we haven't investigated android platform yet, so I don't really
know what is the problem there, but some other users might have
experience with that, so.. feel free to comment.

And or your case - you can put an entity to your request when using
apache http client:

HttpPost httppost = new HttpPost("http://localhost/action.do");
httppost.setEntity(entity);

see [1] for additional details.

Pavel

[1]
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d4e93

On 4/7/11 12:53 PM, Asuka wrote:
> Thanks for your answer. Yes, that's right. sending data as a part of the url
> is not the best way.
>
> The problem is that, I have to use the apache http client, because I send
> the request from an android app and I had some problems using the jersey
> client. Sorry, I've had to told directly.
>
> So I 'm not sure what to do now. Do you have any other ideas?
>
> Thanking you in anticipation
> Greetings
> Asuka
>
>
>
>
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/How-to-give-a-json-string-to-a-webservice-method-tp6247814p6249477.html
> Sent from the Jersey mailing list archive at Nabble.com.
>