Gili wrote:
>
> I'm using 1.0.2-snapshot (latest trunk) for all of them.
> Setting the
> mediaType didn't help. Again it's worth pointing out it's complaining
> about the MultiPart's mediaType, not the body part. I tried explicitly
> setting the MultiPart's mediaType but this didn't help.
>
> Should WebResource.post(ClientResponse.class, new
> MultiPart()); work?
>
Actually, it should not. Per RFC 2046, Section 5.1:
"The [multipart] body must then contain one or more body parts ..."
I'm going to have the MessageBodyWriter throw an exception complaining
if there are no body parts at all.
But this isn't going to help your original problem. Can you
successfully run the unit tests in jersey-multipart in your environment?
> Gili
Craig