Thanks for the reply.Here is the code for the servlet@SlingServlet(paths = { "/services/all-sample" }, methods = { "GET", "POST" })public class xxxxxxxx extends SlingAllMethodsServlet { private static final long serialVersionUID = 1L; private static final Logger logger = LoggerFactory.getLogger(xxxx...