title: How to map xml to Object for consuming by RestTemplate
body: <p>I am trying to consume xml from a webservice using RestTemplate with Spring Boot ...when I call the service from the browser, the response is:</p>
  
  <pre><code>&lt;ns0:IsMember&gt;
      &lt;inputGroupName&gt;someGroup&lt;/inputGroupName&gt;
      &lt;inputUserName&gt;someUserName&lt;/inputUserName&gt;
      &lt;member&gt;true&lt;/member&gt;
  &lt;/ns0:IsMember&gt;
  </code></pre>
  
  <p>I am getting the error: </p>
  
  <blockquote>
    <p>Could not extract response: no suitable HttpMessageConverter found for response type [class gov.sandia.ode.domain.MetagroupInfo] and content type [application/xml].  </p>
  </blockquote>
  
  <p>Which I believe is because my JavaObject does not map properly to the return value...here is my java objects</p>
  
  <pre><code>public class MetagroupInfo {
      String inputGroupName;
      String inputUserName;
      Boolean member;
      //getters and setters
  }
  </code></pre>
  
  <p>My RestTemplate call looks like:</p>
  
  <pre><code>MetagroupInfo response  = restTemplate.getForObject(metagroupUrl, MetagroupInfo.class);
  </code></pre>
  
  <p>Any ideas how to fix this?  I have included spring-boot-starter-web in my pom.xml  Thanks in advance</p>