This API helps to decrypt the xml file present in the report-data contained in Ephesoft Installation directory. The xml to be decrypted contains a key which is required for decrypting the batch xml.
Web Service URL: http://{serverName}:{port}/dcma/rest/decryptReportingBatchXml/ {BatchInstanceIdentifier}/{Module}
Request Method: GET
Sample client code using apache commons http client:-
private static void decryptReportingBatchXml() { HttpClient client = new HttpClient(); String url = "http://localhost:8080/dcma/rest/decryptReportingBatchXml/BI2/Folder_Import"; GetMethod getMethod = new GetMethod(url); int statusCode; try { statusCode = client.executeMethod(getMethod); if (statusCode == 200) { System.out.println("Web service executed successfully."); String responseBody = getMethod.getResponseBodyAsString(); System.out.println(statusCode + " *** " + responseBody); } else if (statusCode == 403) { System.out.println("Invalid username/password."); } else { System.out.println(getMethod.getResponseBodyAsString()); } } catch (HttpException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { if (getMethod != null) { getMethod.releaseConnection(); } } }