Beispiel #1
0
        public static bool Initialise()
        {
            localSettings = (LocalSettings)XMLConfigHandler.ReadConfig(typeof(LocalSettings));
            if (localSettings == null)
            {
                MessageLogger.Add("Error ready LocalSettings.XML", MessageLogger.MsgLevel.error);
                return(false);
            }

            sapSettings = (SAPSettings)XMLConfigHandler.ReadConfig(typeof(SAPSettings));
            if (localSettings == null)
            {
                MessageLogger.Add("Error ready SAPSettings.XML", MessageLogger.MsgLevel.error);
                return(false);
            }

            if (!DBOperations.Initialise())
            {
                return(false);
            }

            MessageLogger.Add(String.Format("Settings read. Web Service Binding: {0} SAP user: {1}", webServiceEndPoint, sapSettings.user),
                              MessageLogger.MsgLevel.info);
            return(true);
        }
 public SAPIntegrationService(SAPSettings sAPSettings,
                              ILogger logger)
 {
     _sAPSettings = sAPSettings;
     _logger      = logger;
 }