public XmlDocument DoExchange(XmlDocument request) { XmlDocument response = new XmlDocument(); Sys system = GetSystem(); try { if (Auth.VerifySignHttp(Context, ref request)) { response = OraDB.CallStoredProc(system.SystemId, ref request); } else { response = VerifySignFail(); Context.Response.StatusCode = 401; Context.Response.StatusDescription = "Unauthorized"; } } catch (Exception ex) { response = GetInternalErrorResponse(); logger.Error(ex, "Произошла ошибка!"); } finally { Auth.MakeSignHttp(Context, ref response); } return(response); }