Package org.openbravo.services.webservice

Examples of org.openbravo.services.webservice.WebServiceImplServiceLocator


   *          Out param. Errors in dependencies. Null if no errors.
   * @return ModuleInstallDetail with modulesToInstall, modulesToUpdate and isValidConfiguration
   */
  static public ModuleInstallDetail checkRemote(VariablesSecureApp vars, String[] moduleVersionId,
      String[] moduleVersionToUpdateId, OBError obErrors) throws Exception {
    WebServiceImplServiceLocator loc = new WebServiceImplServiceLocator();
    WebServiceImpl ws = (WebServiceImpl) loc.getWebService();
    String[] errors = new String[0];

    ModuleInstallDetail mid = ws.checkConsistency(ImportModule.getInstalledModules(pool),
        moduleVersionId, moduleVersionToUpdateId);

View Full Code Here


   * @param moduleVersionID
   *          ID for the module version to obtain
   * @return An {@link InputStream} with containing the obx for the module (null if error)
   */
  public static InputStream getRemoteModule(ImportModule im, String moduleVersionID) {
    WebServiceImplServiceLocator loc;
    WebServiceImpl ws = null;
    String strUrl = "";
    boolean isCommercial;

    try {
      loc = new WebServiceImplServiceLocator();
      ws = loc.getWebService();
    } catch (final Exception e) {
      log4j.error(e);
      im.addLog("@CouldntConnectToWS@", ImportModule.MSG_ERROR);
      try {
        ImportModuleData.insertLog(ImportModule.pool, (im.vars == null ? "0" : im.vars.getUser()),
View Full Code Here

   *
   */
  public void execute() {
    // just for remote installation, modules to install and update must be
    // initialized
    WebServiceImplServiceLocator loc;
    WebServiceImpl ws = null;
    try {
      loc = new WebServiceImplServiceLocator();
      ws = loc.getWebService();
    } catch (final Exception e) {
      log4j.error(e);
      addLog("@CouldntConnectToWS@", MSG_ERROR);
      try {
        ImportModuleData.insertLog(pool, (vars == null ? "0" : vars.getUser()), "", "", "",
View Full Code Here

      VariablesSecureApp vars) {
    try {
      final HashMap<String, String> updateModules = new HashMap<String, String>();
      final String user = vars == null ? "0" : vars.getUser();
      ImportModuleData.insertLog(conn, user, "", "", "", "Scanning For Updates", "S");
      WebServiceImplServiceLocator loc;
      WebServiceImpl ws = null;
      SimpleModule[] updates;
      try {
        loc = new WebServiceImplServiceLocator();
        ws = loc.getWebService();
        final HashMap<String, String> currentlyInstalledModules = getInstalledModules(conn);
        updates = ws.moduleScanForUpdates(currentlyInstalledModules);
      } catch (final Exception e) {
        // do nothing just log the error
        log4j.error(e);
View Full Code Here

      WebServiceImpl ws = null;
      boolean error = false;
      try {
        // retrieve the module details from the webservice
        WebServiceImplServiceLocator loc = new WebServiceImplServiceLocator();
        ws = (WebServiceImpl) loc.getWebService();
      } catch (Exception e) {
        OBError message = new OBError();
        message.setType("Error");
        message.setTitle(Utility.messageBD(this, "Error", vars.getLanguage()));
        message.setMessage(Utility.messageBD(this, "WSError", vars.getLanguage()));
View Full Code Here

      String recordId, boolean local) throws IOException, ServletException {
    Module module = null;
    if (!local) {
      try {
        // retrieve the module details from the webservice
        final WebServiceImplServiceLocator loc = new WebServiceImplServiceLocator();
        final WebServiceImpl ws = loc.getWebService();
        module = ws.moduleDetail(recordId);
      } catch (final Exception e) {
        log4j.error(e);
        throw new ServletException(e);
      }
View Full Code Here

    if (!islocal && (updateModules == null || updateModules.length == 0)) {
      // if it is a remote installation get the module from webservice,
      // other case the obx file is passed as an InputStream
      try {
        final WebServiceImplServiceLocator loc = new WebServiceImplServiceLocator();
        final WebServiceImpl ws = loc.getWebService();
        module = ws.moduleDetail(recordId);
      } catch (final Exception e) {
        log4j.error(e);
      }
    } else {
View Full Code Here

          } catch (final Exception ex) {
            log4j.error(ex);
          }
        }
      }
      final WebServiceImplServiceLocator loc = new WebServiceImplServiceLocator();
      final WebServiceImpl ws = loc.getWebService();
      modules = ws.moduleSearch(text, getInstalledModules());

    } catch (final Exception e) {
      final OBError message = new OBError();
      message.setType("Error");
View Full Code Here

TOP

Related Classes of org.openbravo.services.webservice.WebServiceImplServiceLocator

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.