title: Server 415 Response code
body: <p>I am using Jetty web server, and Jersey for REST handling.</p>
  
  <p>I defined:</p>
  
  <pre><code>@POST
  @Path("/sendMessage")
  @Consumes ({MediaType.APPLICATION_XML, MediaType.TEXT_XML})
  public Response sendMessage(@Context final UriInfo uriInfo) 
  {
      logger.debug("sendMessage:");
      System.out.println("Received POST!");
      return Response.status(Response.Status.OK).build();
  
  }
  </code></pre>
  
  <p>However, when I send a http request, <code>http://localhost:8080/hqsim/sendMessage</code>, the server returns a 415 code.</p>
  
  <p>It's like the call is not allowed. How can I fix this error?</p>