Package fi.luomus.commons.kirjekyyhky

Examples of fi.luomus.commons.kirjekyyhky.KirjekyyhkyAPIClient


      if (api != null) api.close();
    }
  }

  private static void kirjekyyhkyApiExample() {
    KirjekyyhkyAPIClient api = null;
    try {
      api = new KirjekyyhkyAPIClientImple("http://kirjekyyhky.uri.tähän.fi", "username", "password", "mySystemId");

      api.getCount();
      api.getForms();
      api.receive("1231");
      api.send(new File("new prefilled <form-data> .xml"), new File("optinally a prefilled PDF file"));

      FormData formData = api.get("2525");
      for (LogEntry e : formData.getLogEntries()) {
        // jotain
      }
      String nro = formData.getData().get("pistelaskenta.nro");
      //...

    } catch (Exception e) {
      // jep
    } finally {
      if (api != null) api.close();
    }
  }
View Full Code Here

TOP

Related Classes of fi.luomus.commons.kirjekyyhky.KirjekyyhkyAPIClient

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.