adding restful webservice code