James Adams wrote:
> I'm having trouble in a client class method when I make a
> WebResource.Builder().get() call:
>
> com.sun.jersey.api.client.ClientHandlerException: A message body reader for
> Java type, class com.mycom.myapp.api.models.MyModel, and MIME media type,
> application/xml, was not found
>
> I have tried remedying the problem by adding the Fast Infoset provider
> classes to the ClientConfig in the client's constructor but apparently this
> isn't a fix for the problem. Can anyone suggest where else I might look for
> the problem and/or what else I might try to fix it?
>
> I'm using Jersey version 1.0.3. Thanks in advance for any suggestions, etc.
>
> --James
>
Is MyModel a JAXB-annotated class? If it is not, you will have to
provide your own MessageBodyReader to convert from the incoming XML to a
Java instance.
Craig