/// <summary> /// Start creating a scan report. /// </summary> /// <param name="scanId"> /// The scan ID to generate a report for. /// </param> /// <param name="reportType"> /// The report type. /// </param> /// <returns> /// The report ID. /// </returns> /// <exception cref="CheckmarxErrorException"> /// The Checkmarx API returned an unexpected error. /// </exception> /// <exception cref="CheckmarxCommunicationException"> /// An error occurred communicating with the Checkmarx server. /// </exception> public long CreateScanReport(long scanId, CxWSReportType reportType) { CxWSReportRequest reportRequest; reportRequest = new CxWSReportRequest() { ScanID = scanId, Type = reportType }; return(CallCheckmarxApi(() => SoapClient.CreateScanReport(SessionId, reportRequest)).ID); }