title: Sending application/xml POST message to REST API doesn't work
body: <p>This is the POST method with JAX-RS annotations:</p>
  
  <pre><code>@POST
  @Consumes(MediaType.APPLICATION_XML)
  @Produces(MediaType.TEXT_PLAIN)
  public Response storeUser(User user) {
  
     boolean wasStored = JPAUserStore.storeUser(user);
  
     if (wasStored) {
        return Response.ok("User was stored.").build();
     } else {
        return Response.status(Status.BAD_REQUEST).build();   
     }
  
  }
  </code></pre>
  
  <p>And this is the class User with JAXB annotations:</p>
  
  <pre><code>@XmlRootElement
  @XmlAccessorType(XmlAccessType.FIELD)
  public User {
  
    @XmlElement(name = "Name")
    protected String name;
  
    @XmlElement(name = "Address")
    protected String address;
  
    public void setName(String name) {
       this.name = name;
    }
  
    public String getName() {
       return this.name;
    }
  
    public void setAddress(String address) {
       this.address = address;
    }
  
    public String getAddress() {
       return this.address;
    }
  
  }
  </code></pre>
  
  <p>The REST web service runs on a Jetty. 
  When I send a request message (using RESTClient Firefox plugin) with content type "application/xml" and this body</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;User&gt;
      &lt;Name&gt;Max&lt;/Name&gt;
      &lt;Address&gt;Main Street 12&lt;/Address&gt;
   &lt;/User&gt;
  </code></pre>
  
  <p>to the appropriate resource a 400 Bad request will be returned. According to the log the method JPAUserStore.storeUser(...) was not executed.</p>
  
  <p>What is the reason, why the method annotated with @POST will be not executed and OK returned?</p>