java - Client Server Communication in REST: Using RestTemplate: Unable to send data to Server side -


i trying setup client-server communication in rest, spring.

in client side have code:

rresult = resttemplate.getforobject("http://localhost:8081/springmvcmerchant/movietheater.htm", responsetext.class, variable); 

the variable above hashmap. want value variable transferred server side code. server side code is:

@responsebody @requestmapping(value="/movietheater", method=requestmethod.get) public responsetext getcustomerinput(map<string, double> input) {     transaction transaction = new transaction();     responsetext result = new responsetext();     if(transactionservice.addtransaction(input))         result.setmessage(responsestatus.success.getstatus());     else         result.setmessage(responsestatus.failed.getstatus());     return result; } 

in side expecting map input receive value of map variable. but, not happening. don't want send value url parameter. can please tell me how can fix this?

thanks in advance!

instead of http request http post request.

see: https://stackoverflow.com/a/15944890/2179109


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -