when i run the client side program it posts the "studentXML" to the above "getStudent()" method in the server side and bind the xml content to the student object . I modified the student object now and i am returning the object again .
Now i want to display the returned object in XML format again , but i dont knw how to do it in the client side .. Please help me if any body knows it .
thanks for your reply ... i tried by writing the following code
ClientResponse response = webResource.accept(MediaType.APPLICATION_XML).get(ClientResponse.class);
Students entity = response.getEntity(Students.class);
its throwing the following error now as below
Exception in thread "main" com.sun.jersey.api.client.ClientHandlerException: A message body reader for Java class de.vogella.jersey.first.pkg.Students, and Java type class de.vogella.jersey.first.pkg.Students, and MIME media type text/html; charset=utf-8 was not found