Android Spring Rest template -


i'm trying use spring rest template post request. , need return status code. approach.

resttemplate resttemplate = new resttemplate();
multivaluemap mvm = new linkedmultivaluemap();
mvm.add("login", "100"); // , more paramters
string result = resttemplate.postforobject("http://localhost:8080/security_check", mvm, string.class);

but approach doesn't work me. generates error saying no suitable message converter found. , need know can use resttemplate manage sessions. need manage session android client side.

if 1 come across android resttemplate post method , session management please me. appreciated.
in advance.

see http://forum.springsource.org/showthread.php?t=99064 pls mark question answered or delete since u asked on link posted.

and way can take @ question regarding similiar issue... http://forum.springsource.org/showthread.php?t=99690 ;)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -