I have stand alone Java Application with Spring 3.0. I am calling REST service “post” method call with 4 integer parameters. While calling restTemplate.postForEntity(), I am getting error “no suitable HttpMessageConverter found for request type”. Is it require to set any messageConverter in restTemplate ? i don’t find any sample on net.
Share
Funny, I just answered similar question…
Nevertheless you may want check great Spring Reference Manual, particularly this fragment, documentation, IBM Dev blog post and
RestTemplateexample on SpringSource Blog (written when ).From SpringSource Blog post:
Also, IBM blog post here mentions common HttpMessageConverter implementations, you probably will use Marshalling (response in XML) or MappingJackson (for JSON) one.