Folks,
I am working with the RESTful webservice in java and it causing the 500 error while communicating from the Java application
here is the RESTful webservice
@Path("WebTest")
@Produces("application/json")
public class WebTestResource {
private TreeMap bookMap = new TreeMap();
public WebTestResource() {
}
@GET
public List getBooks() {
List books = new ArrayList();
books.addAll(bookMap.values());
return books;
}
@GET
@Path("{id}")
public BookDemo getBook(@PathParam("id") int bookId) {
return bookMap.get(bookId);
}
@POST
@Path("add")
@Produces("text/plain")
@Consumes("appl