On Dec 2, 2010, at 11:05 PM, vmaroli wrote:
>
> I am trying something similar, trying to send a JAXB object and and
> binary
> content.
>
> Note note = multiPart.getBodyParts().get(0).getEntityAs(Note.class);
>
> The getEntityAs method is throwing error saying "MessageBobyReader"
> not
> found. Where as ClientResponse.getEntiry is successfully parsing the
> response into a Java Object. For multiPart...getEntityAs to work, is
> there
> something special that need to be done ? I having problem on server
> and
> client side. Please help
>
Is there any more detailed error you can share? i.e. the error message
should also include what the media type was too.
It is most likely because the content-type of the body part has not
been set correctly to an XML compatible media type.
Paul.