I like to expose one JAVA method as a Web service that will accept POST ,strip the parameters out of it and reply accordingly. I read I have to use doPost(req,resp) , but How can I get to the servlet code? what should be in web.xml? there will not be a welcome-file ? After mapping the servlet, can I read it without the need for a index.html as start point?
I like to expose one JAVA method as a Web service that will accept
Share
create the
doPost(req,resp)method in your servlet and map it to a url inweb.xmlthen you can post your request to
/post-url.You don’t need to use index.html.Any url can be put in welcome file to load for the url/To set
/post-urlas landing page , useyou can get started here https://developers.google.com/appengine/docs/java/gettingstarted/creating