Use service() method instead of doPost() or doGet() methods