add webservice response status code and headers to shared variable