Example #1
0
 public SupplierService(ISapDbHelper sapService)
 {
     _sapService   = sapService;
     _manageClient = new ManageSupplierInClient("binding_SOAP12");
     _manageClient.ClientCredentials.UserName.UserName = SapUser;
     _manageClient.ClientCredentials.UserName.Password = SapPass;
     _queryClient = new QuerySupplierInClient("binding_SOAP12");
     _queryClient.ClientCredentials.UserName.UserName = SapUser;
     _queryClient.ClientCredentials.UserName.Password = SapPass;
 }
Example #2
0
 public AccountService(IRestClient restClient, ISapDbHelper sapService)
 {
     _restClient   = restClient;
     _sapService   = sapService;
     _queryClient  = new QueryCustomerInClient("binding_SOAP12");
     _manageClient = new ManageCustomerInClient("binding_SOAP12");
     _queryClient.ClientCredentials.UserName.UserName  = SapUser;
     _queryClient.ClientCredentials.UserName.Password  = SapPass;
     _manageClient.ClientCredentials.UserName.UserName = SapUser;
     _manageClient.ClientCredentials.UserName.Password = SapPass;
 }
Example #3
0
        public MaterialService(ISapDbHelper sapService)
        {
            _manageClient = new ManageMaterialInClient("binding_SOAP12");
            _manageClient.ClientCredentials.UserName.UserName = SapUser;
            _manageClient.ClientCredentials.UserName.Password = SapPass;

            _materialValuationClient = new ManageMaterialValuationDataInClient("binding_SOAP12");
            _materialValuationClient.ClientCredentials.UserName.UserName = SapUser;
            _materialValuationClient.ClientCredentials.UserName.Password = SapPass;

            _queryClient = new QueryMaterialInClient("binding_SOAP12");
            _queryClient.ClientCredentials.UserName.UserName = SapUser;
            _queryClient.ClientCredentials.UserName.Password = SapPass;

            _sapService = sapService;
        }