Writing webservice/webapp