moved globalmap.put() for response_error_msg and xml (after) variables to begin for initialization