Package com.mes.sdk.reporting

Examples of com.mes.sdk.reporting.Reporting


   
        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();
    }
View Full Code Here

TOP

Related Classes of com.mes.sdk.reporting.Reporting

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.