rewriting the web service to improve the sending of error messages back from the server.