I am using RestTemplate to make calls to a web service.
String userId = restTemplate.getForObject(createUserUrl, String.class);
If this fai
Configure your logging as follows:
log4j.logger.org.springframework.web.client=DEBUG
Then use a curl command to see the output, eg
curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' http://localhost:8080/ser/data
By default, restTemplate uses HttpURlConnection (via SimpleClientHttpRequest), so you might need to switch to jakarta httpclient to see the log statement. Otherwise the above log configuration will out show you the response
...