reportData Interface

The reportData interface is used to request the data of a report. The following table shows the parameters of the reportData interface:

Interface URL Parameters Descriptions

http://<front-end URL>/servicesExchange?hid=reportData

sid Web-service token or session identifier for user authentication. You can generate the web-service token in the Settings Page of the Silk Central UI. To access this page, hover the mouse cursor over the user name in the Silk Central menu and select User Settings. You can retrieve the session identifier by invoking the logonUser method of one of the Available Web Services.
  reportFilterID Report filter ID
  type Response body format:

(csv or xml)

  includeHeaders Include report headers or not.

(true or false)

projectID ID of the project

Example: http://<front-end URL>/servicesExchange?hid=reportData&reportFilterID=<id>&type=<csv or xml>&includeHeaders=<true or false>&sid=<webServiceToken>&projectID=<id>

reportData Interface Example

String reportID = "<id>";
String webServiceToken = "e39a0b5b-45db-42db-84b2-b85028d954d5";
String host = "<any_host>";

URL report = new URL("http", host, 19120,
	"/servicesExchange?hid=reportData" +
	"&type=xml" + // or csv
	"&sid=" + webServiceToken +
	"&reportFilterID=" + reportID +
	"&includeHeaders=true" +
	"&rp_execNode_Id_0=1" +

BufferedReader in = new BufferedReader(new InputStreamReader(report.openStream(), "UTF-8"));
StringBuilder builder = new StringBuilder();
String line = "";

while ((line = in.readLine()) != null) {
	builder.append(line + "\n");

String text = builder.toString();
If the report requires parameters, you need to add the following code to the report URL for each parameter:
In the example, the parameter rp_execNode_Id_0 is set to the value 1.
Note: The names of parameters that are passed to the reportData service have to be prefixed with rp_. Example: /servicesExchange?hid=reportData&type=xml&sid=<...>&reportFilterID=<...>&projectID=<...>&rp_TestID=<...>