ho scoperto che il PUT non funziona.

questo è il codice del servizio:
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");
    }
la chiamata è sempre quella.

il fatto è che il server restituisce POST e non PUT.