created webservice to send data to the server