Added code for the handling of the web service response.