public static bool UpdateResultState(ResultStateData[] dataArr) { if (CommonData.IsWorkingOffline) { MessageBox.Show("You are working offline. \rCannot update data", "Error", MessageBoxButtons.OK); return(false); } CxWSBasicRepsonse res = null; try { CxWebServiceClient client = null; LoginResult loginResult = getLoginResult(); try { client = new CxWebServiceClient(loginResult.AuthenticationData); } catch (Exception e) { Logger.Create().Error(e.ToString()); MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK); return(false); } foreach (ResultStateData data in dataArr) { data.projectId = CommonData.ProjectId; } res = client.ServiceClient.UpdateSetOfResultState("", dataArr); if (!res.IsSuccesfull) { // show error message MessageBox.Show(res.ErrorMessage, "Error", MessageBoxButtons.OK); return(false); } } catch (Exception ex) { Logger.Create().Error(ex.ToString()); MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK); return(false); } return(res.IsSuccesfull); }
public CxWSBasicRepsonse DeleteEngineServer(string sessionID, long id) { CxWSBasicRepsonse result = _web_Service.DeleteEngineServer(sessionID, id); return(result); }
public CxWSBasicRepsonse UpdateUserProfileData(string sessionID, ProfileData userProfileData) { CxWSBasicRepsonse result = _web_Service.UpdateUserProfileData(sessionID, userProfileData); return(result); }
public CxWSBasicRepsonse DeletePendingUsers(string sessionID, int[] userIdList) { CxWSBasicRepsonse result = _web_Service.DeletePendingUsers(sessionID, userIdList); return(result); }
public CxWSBasicRepsonse ChangePassword(string sessionID, string oldPsw, string newPsw) { CxWSBasicRepsonse result = _web_Service.ChangePassword(sessionID, oldPsw, newPsw); return(result); }
public CxWSBasicRepsonse CheckChangePasswordToken(string token) { CxWSBasicRepsonse result = _web_Service.CheckChangePasswordToken(token); return(result); }
public CxWSBasicRepsonse ForgotPassword(string loginUrl, string email) { CxWSBasicRepsonse result = _web_Service.ForgotPassword(loginUrl, email); return(result); }
public CxWSBasicRepsonse UpdateScanComment(string sessionID, long ScanID, string Comment) { CxWSBasicRepsonse result = _web_Service.UpdateScanComment(sessionID, ScanID, Comment); return(result); }
public CxWSBasicRepsonse RunProjectIncrementally(string sessionID, long projectID) { CxWSBasicRepsonse result = _web_Service.RunProjectIncrementally(sessionID, projectID); return(result); }
public CxWSBasicRepsonse UpdateProjectUserCredentials(string sessionID, long projectID, Credentials credentials) { CxWSBasicRepsonse result = _web_Service.UpdateProjectUserCredentials(sessionID, projectID, credentials); return(result); }
public CxWSBasicRepsonse CancelScan(string sessionID, string RunId) { CxWSBasicRepsonse result = _web_Service.CancelScan(sessionID, RunId); return(result); }
public CxWSBasicRepsonse DeletePreset(string sessionId, long id) { CxWSBasicRepsonse result = _web_Service.DeletePreset(sessionId, id); return(result); }
public CxWSBasicRepsonse IsValidProjectName(string SessionID, string ProjectName, string GroupId) { CxWSBasicRepsonse result = _web_Service.IsValidProjectName(SessionID, ProjectName, GroupId); return(result); }
public CxWSBasicRepsonse Logout(string sessionID) { CxWSBasicRepsonse result = _web_Service.Logout(sessionID); return(result); }
public CxWSBasicRepsonse UploadQueries(string sessionId, CxWSQueryGroup[] queries) { CxWSBasicRepsonse result = _web_Service.UploadQueries(sessionId, queries); return(result); }
public CxWSBasicRepsonse UpdateSetOfResultState(string sessionID, ResultStateData[] resultsStates) { CxWSBasicRepsonse result = _web_Service.UpdateSetOfResultState(sessionID, resultsStates); return(result); }
public CxWSBasicRepsonse DeleteScan(string sessionID, long ScanID) { CxWSBasicRepsonse result = _web_Service.DeleteScan(sessionID, ScanID); return(result); }
public CxWSBasicRepsonse DeleteProject(string sessionID, long projectID) { CxWSBasicRepsonse result = _web_Service.DeleteProject(sessionID, projectID); return(result); }
public CxWSBasicRepsonse CreateScanRTFReport(string sessionID, long scanID) { CxWSBasicRepsonse result = _web_Service.CreateScanRTFReport(sessionID, scanID); return(result); }
public CxWSBasicRepsonse IsValidPresetName(string sessionID, string presetName) { CxWSBasicRepsonse result = _web_Service.IsValidPresetName(sessionID, presetName); return(result); }
public CxWSBasicRepsonse ResetPasswordByEmail(string passwordChangePageUrl, string email) { CxWSBasicRepsonse result = _web_Service.ResetPasswordByEmail(passwordChangePageUrl, email); return(result); }
public CxWSBasicRepsonse UpdateProjectIncrementalConfiguration(string sessionID, long projectID, ProjectConfiguration projectConfiguration) { CxWSBasicRepsonse result = _web_Service.UpdateProjectIncrementalConfiguration(sessionID, projectID, projectConfiguration); return(result); }
public CxWSBasicRepsonse ChangePasswordWithToken(string token, string password) { CxWSBasicRepsonse result = _web_Service.ChangePasswordWithToken(token, password); return(result); }
public CxWSBasicRepsonse ResetIgnorePath(string sessionID, long ProjectId) { CxWSBasicRepsonse result = _web_Service.ResetIgnorePath(sessionID, ProjectId); return(result); }
public CxWSBasicRepsonse RegisterPendingUser(WebClientPendingUser pendingUser, string pendingUsersTableUrl) { CxWSBasicRepsonse result = _web_Service.RegisterPendingUser(pendingUser, pendingUsersTableUrl); return(result); }
public CxWSBasicRepsonse SetFalsePositiveFlag(string sessionID, long ResultId, long PathId, long projectId, bool falsePositiveFlag) { CxWSBasicRepsonse result = _web_Service.SetFalsePositiveFlag(sessionID, ResultId, PathId, projectId, falsePositiveFlag); return(result); }
public CxWSBasicRepsonse ApprovePendingUsers(string sessionID, WebClientApprovedUser[] userList) { CxWSBasicRepsonse result = _web_Service.ApprovePendingUsers(sessionID, userList); return(result); }
public CxWSBasicRepsonse UpdateResultComment(string sessionID, long ResultId, long PathId, long projectId, string comment) { CxWSBasicRepsonse result = _web_Service.UpdateResultComment(sessionID, ResultId, PathId, projectId, comment); return(result); }
public CxWSBasicRepsonse DeleteUser(string sessionID, int userID) { CxWSBasicRepsonse result = _web_Service.DeleteUser(sessionID, userID); return(result); }
public CxWSBasicRepsonse UpdateResultState(string sessionID, long scanId, long PathId, long projectId, string Remarks, int ResultLabelType, string data) { CxWSBasicRepsonse result = _web_Service.UpdateResultState(sessionID, scanId, PathId, projectId, Remarks, ResultLabelType, data); return(result); }