Joined: Aug 21, 2008
posted Today 12:51 AM I am trying to call DELETE method for my REST web service which I created using enuncaite.
when I try to access get it's working fine .. but unable to access DELETE and POST methods..
please fine my service class below
public Persona readPersona(@PathParam ("id") String personaId);
public void storePersona(Persona persona);
public Persona deletePersona(@PathParam("id") String personaId);
on making some research I got a solution to add an handler .. of which code looks like
if(request.getMethod()!=null && request.getMethod().equalsIgnoreCase("GET")
My website has around 500 url's which I need to delvelop .. and it;s looks really odd for me to do if else condition for each url,
please help me to get better solution than this or please teach me how this is best way for REST web service
- Posted by: vamsi reddy
- Posted on: August 24 2011 03:44 EDT