added correct error handling for soap service