8

HTTP Status 405 - Method Not Allowed (jax-rs service)

view full story
linux-howto

http://stackoverflow.com – I have problem with jax-rs services, service return HTTP Status 405 - Method Not Allowed. I calling serice from android project. Here is my code: Service: @GET @Consumes(MediaType.TEXT_HTML) @Produces(MediaType.APPLICATION_JSON) @Path("login") public Korisnici Login(@QueryParam("u") String username,@QueryParam("p") String password){ Korisnici exception = new Korisnici(); try { for (Korisnici obj : KorisniciDAO.getInstance().getAll()) { if (obj.getUsername().equals(username) && obj.getPassword().equals(password)) { (HowTos)