Hi Ricardo,
looks like there is some problem with delegate to RI. You should be able
to workaround that by using MediaType.APPLICATION_XML_TYPE instead of
MediaType.APPLICATION_XML.
Let me know if it works for you.
Regards,
Pavel
On 12/4/11 6:47 PM, Ricardo Borillo wrote:
> Hi all,
>
> I have read that it is possible to use Jersey Client in Adroid, but
> i'm facing some issues ...
>
> I try to call a remote REST service:
>
> Client client = Client.create();
> WebResource resource = client.resource("http://xxxxxx").path("yyyyy");
> ClientResponse response =
> resource.accept(MediaType.APPLICATION_XML).get(ClientResponse.class);
> Document document = response.getEntity(Document.class);
>
> But i'm getting a NullPointException at
> javax.ws.rs.core.MediaType.valueOf(MediaTYpe.java:119).
>
> Any known problem with Jersey and Android?
>
> Best regards,
> ====================================
> Ricardo Borillo Domenech
> http://xml-utils.com / http://twitter.com/borillo
>