ReportingSettings settings = new ReportingSettings();
settings.credentials("user", "pass")
.verbose(true)
.hostUrl(ReportingSettings.URL_LIVE);
Reporting reporting = new Reporting(settings);
ReportingRequest request = new ReportingRequest(ReportType.BATCH, ReportMode.DETAIL);
request.setNode("9410000xxxxx")
.setStartDate("11", "01", "2012")
.setEndDate("11", "01", "2012")
.setResponseFormat(ResponseFormat.XML1);
try {
ReportingResponse response = reporting.run(request);
LOG.log(Level.INFO, response.toString());
if(reporting.wasSuccessful()) {
// Store or parse response.getRawResponse()
}
} catch (MesRuntimeException e) {
e.printStackTrace();
}