Это мой метод обслуживания ..
@Produces({ "application/xml" })
@GET
public List<Customer> getCustomers() {
return hd.getAllCustomers();
}
А это мой код на стороне клиента.
Client c=Client.create();
webResource= c.resource(getBaseURI());
List<Customer> list=webResource.path("customers").type(MediaType.APPLICATION_XML).get(List.class);
System.out.println(list.isEmpty());
Но когда я его выполняю, он выдает мне следующее исключение:
com.sun.jersey.api.client.ClientHandlerException: A message body reader for Java class java.util.List, and Java type interface java.util.List, and MIME media type application/xml was not found
Не могли бы вы помочь мне разобраться с этим? Я новичок в спокойных веб-сервисах