Restful webservice tutorial