ho scoperto che il PUT non funziona.
questo è il codice del servizio:
la chiamata è sempre quella.codice:@PUT @Consumes("*/*") @Path("{name}") public void put(@PathParam("name") String name) { System.out.println("PUT"); } @POST @Consumes("*/*") @Path("{name}") public void post(@PathParam("name") String name) { System.out.println("POST"); }
il fatto è che il server restituisce POST e non PUT.