users@jersey.java.net

Re: how to post objects using Jersey Client ?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sun, 9 Aug 2009 16:28:48 +0200

got it:

PujUserEntity newUser =
wr.path("user").path("create").type(MediaType.APPLICATION_XML).put(PujUserEntity.class,
user);

for this resource:

>
>        @POST
>        @Produces( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
>        @Path("create")
>        public PujUserEntity create(PujUserEntity user) {
>                return userFacade.create(user);
>        }