The API client can generate a result report for a scan, by Scan ID.
public CxWSCreateReportResponse CreateScanReport( string sessionID, CxWSReportRequest reportRequest ); |
CxWSReportRequest, including:
To generate a result report for a scan with a known ID of 256:
internal void Main(string [] args) { String sessionID = args[0]; CxSDKWebServiceSoapClient cxSDKProxy = new CxSDKWebServiceSoapClient(); CxWSReportRequest request = new CxWSReportRequest (); //set the report type to be PDF request.Type = CxWSReportType.PDF; //report should be for scan ID 256 request.ScanID = 256; CxWSCreateReportResponse response = cxSDKProxy.CreateScanReport(sessionID, request); ReportID =response.ID; } |
This section covers SOAP to REST migration and mapping of our legacy SOAP based SDK to the new REST APIs. It is recommended to use this reference only once CxSAST V8.8.0 is installed.
CreateScanReport | Generate a new scan report. |
For more mapping information, refer to API Mapping (SOAP to REST). You can find a summary of our REST APIs here.