示例#1
0
        public DynamicsNAVSOAPServices(string companyURLName)
        {
            //Employee Account WS
            employeeAccountWS.Url         = ServiceConnection.GetDynamicsNAVSOAPURL("EmployeeAccountWebService", companyURLName);
            employeeAccountWS.Credentials = ServiceConnection.getConnectionCredentials(employeeAccountWS.Url);

            //HR Management WS
            hrManagementWS.Url         = ServiceConnection.GetDynamicsNAVSOAPURL("HumanResourceManagementWS", companyURLName);
            hrManagementWS.Credentials = ServiceConnection.getConnectionCredentials(hrManagementWS.Url);

            //Inventory Management WS
            inventoryManagementWS.Url         = ServiceConnection.GetDynamicsNAVSOAPURL("InventoryManagementWS", companyURLName);
            inventoryManagementWS.Credentials = ServiceConnection.getConnectionCredentials(inventoryManagementWS.Url);

            //Procurement Management WS
            procurementManagementWS.Url         = ServiceConnection.GetDynamicsNAVSOAPURL("ProcurementManagementWS", companyURLName);
            procurementManagementWS.Credentials = ServiceConnection.getConnectionCredentials(procurementManagementWS.Url);

            //Funds Management WS
            fundsManagementWS.Url         = ServiceConnection.GetDynamicsNAVSOAPURL("FundsManagementWebService", companyURLName);
            fundsManagementWS.Credentials = ServiceConnection.getConnectionCredentials(fundsManagementWS.Url);

            //Fundsclaim Management WS
            fundsClaimManagementWS.Url         = ServiceConnection.GetDynamicsNAVSOAPURL("FundsClaimManagementWebService", companyURLName);
            fundsClaimManagementWS.Credentials = ServiceConnection.getConnectionCredentials(fundsClaimManagementWS.Url);

            //Approvals Management WS
            ApprovalsMgmt.Url         = ServiceConnection.GetDynamicsNAVSOAPURL("PortalApprovalManager", companyURLName);
            ApprovalsMgmt.Credentials = ServiceConnection.getConnectionCredentials(ApprovalsMgmt.Url);
        }
示例#2
0
 public DynamicsNAVODATAServices(string companyURLName)
 {
     dynamicsNAVOData             = new NAV(new Uri(ServiceConnection.GetDynamicsNAVODATAURL(companyURLName)));
     dynamicsNAVOData.Credentials = ServiceConnection.getConnectionCredentials(ServiceConnection.GetDynamicsNAVODATAURL(companyURLName));
 }