working version of the webservice