コード例 #1
0
        public static CxWSResultPath GetPathCommentsHistory(long scanId, long pathId)
        {
            if (CommonData.IsWorkingOffline)
            {
                return(SavedResultsManager.Instance.GetResultPath(scanId, pathId));
            }
            CxWSResultPath res         = null;
            LoginResult    loginResult = getLoginResult();

            CxWebServiceClient client;

            try
            {
                client = new CxWebServiceClient(loginResult.AuthenticationData);
            }
            catch (Exception e)
            {
                Logger.Create().Error(e.ToString());
                MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK);
                return(null);
            }
            CxWSResponceResultPath cXWSResponseResults = client.ServiceClient.GetPathCommentsHistory(loginResult.SessionId, scanId, pathId, CxVSWebService.ResultLabelTypeEnum.Remark);

            if (!cXWSResponseResults.IsSuccesfull)
            {
                // show error message
                MessageBox.Show(cXWSResponseResults.ErrorMessage, "Error", MessageBoxButtons.OK);
                return(null);
            }

            res = cXWSResponseResults.Path;

            return(res);
        }
コード例 #2
0
    public CxWSResponceResultPath GetResultPath(string sessionId, long scanId, long pathId)
    {
        CxWSResponceResultPath result = _web_Service.GetResultPath(sessionId, scanId, pathId);

        return(result);
    }