title: How do I log response in Spring RestTemplate?
body: <p>I am using RestTemplate to make calls to a web service.</p>
  
  <pre><code>String userId = restTemplate.getForObject(createUserUrl, String.class);
  </code></pre>
  
  <p>If this fails to return a user ID I just get returned null but I don't know why. How do I output the actual XML response to a log?</p>