Examples of WebServiceImplServiceLocator


Examples of com.openbravo.ws.customers.WebServiceImplServiceLocator

                if (url.endsWith("/ExternalSales")) {
                    url = url.substring(0, url.length() - 14);
                }              
               
                externalSales = new ExternalSalesImplServiceLocator().getExternalSales(new URL(url + "/ExternalSales"));
                externalCustomers = new WebServiceImplServiceLocator().getWebService(new URL(url + "/WebService"));
                       
                m_sERPUser = prop.getProperty("user");
                m_sERPPassword = prop.getProperty("password");       
                if (m_sERPUser != null && m_sERPPassword != null && m_sERPPassword.startsWith("crypt:")) {
                    // La clave esta encriptada.
View Full Code Here

Examples of com.openbravo.ws.customers.WebServiceImplServiceLocator

                if (url.endsWith("/ExternalSales")) {
                    url = url.substring(0, url.length() - 14);
                }              
               
                externalSales = new ExternalSalesImplServiceLocator().getExternalSales(new URL(url + "/ExternalSales"));
                externalCustomers = new WebServiceImplServiceLocator().getWebService(new URL(url + "/WebService"));
                       
                m_sERPUser = prop.getProperty("user");
                m_sERPPassword = prop.getProperty("password");       
                if (m_sERPUser != null && m_sERPPassword != null && m_sERPPassword.startsWith("crypt:")) {
                    // La clave esta encriptada.
View Full Code Here

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

Examples of org.openbravo.services.webservice.WebServiceImplServiceLocator

   * @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

Examples of org.openbravo.services.webservice.WebServiceImplServiceLocator

   *
   */
  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

Examples of org.openbravo.services.webservice.WebServiceImplServiceLocator

      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

Examples of org.openbravo.services.webservice.WebServiceImplServiceLocator

      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

Examples of org.openbravo.services.webservice.WebServiceImplServiceLocator

      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

Examples of org.openbravo.services.webservice.WebServiceImplServiceLocator

    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

Examples of org.openbravo.services.webservice.WebServiceImplServiceLocator

          } 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
Copyright © 2018 www.massapi.com. 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.