On Aug 26, 2009, at 10:03 AM, Paul Sandoz wrote:
> OK, this looks like a bug in 1.0.3. It all depends if the type of
> "request" is annotated with @XmlRootElement or not.
>
> As a work around try setting the content type:
>
> clientResponse = createWebResource().
> accept(contentType).
> type("application/xml").
> post(ClientResponse.class, request);
>
> and see what happens.
>
> Omitting the content-type should result in the setting of
> "application/xml" by default for supported JAXB beans.
>
> But i can also reproduce this, in the trunk, for types that are not
> supported (e.g. a JAXB bean annotated with @XmlType). I have a fix
> in place that is currently being tested.
>
Fixed in the trunk.
Paul.