I am attemtping to call a service using rest template and I am receiving a 404 error.
It's a POST. The signature of method is
String sendScreenAsPostcard(@RequestBody MultiValueMap<String, Object> params)
I am attenpting to call this from the resttemplate with the following code.
restTemplate.exchange(
"http://localhost:8080/sendScreeenAsPostCard",
HttpMethod.POST,
new HttpEntity<MultiValueMap<String, Object>>(parameters, headers),
String.class
).getBody()
Please advice what I am doing wrong. Thanks.