adding error handling to web service