CreateEmployeeJerseyClient client1=new CreateEmployeeJerseyClient();
ClientResponse response=client1.findAll_XML(ClientResponse.class);
GenericType<List<TblEmployee>> genericType = new GenericType<List<TblEmployee>>() {};
List<TblEmployee> data= new ArrayList<TblEmployee>();
data=(response.getEntity(genericType));
Employee p=new Employee();
p.setId(5);
p.setFirstname("Johan");
p.setLastname("Russel");
p.setGender("Male");
p.setAddress("sss");
client1.create_XML(p);
When I implement this code in Java (JDK 1.8) to save data in MYSQL, it showing the error like "Method getEntity() in class ClientResponse cannot be applied to given types"
I referred these below links. https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/RESTfulWebServices_Part2/RESTfulWebservicesPart2.htm https://www.oracle.com/webfolder/technetwork/tutorials/obe/java/RESTfulWebServices/RESTfulWebservices.htm