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