Esempio n. 1
0
        private void AddUpsServiceAccessToken(UPSTimeInTransit.UPSSecurity upss)
        {
            var upssSvcAccessToken = new UPSTimeInTransit.UPSSecurityServiceAccessToken();

            upssSvcAccessToken.AccessLicenseNumber = AccessLicenseNumber;
            upss.ServiceAccessToken = upssSvcAccessToken;
        }
Esempio n. 2
0
        private void AddUserNameToken(UPSTimeInTransit.UPSSecurity upss)
        {
            var upssUsrNameToken = new UPSTimeInTransit.UPSSecurityUsernameToken();

            upssUsrNameToken.Username = UserName;
            upssUsrNameToken.Password = Pasword;
            upss.UsernameToken        = upssUsrNameToken;
        }
Esempio n. 3
0
        private void AddUpsSecurity(TimeInTransitService upsService)
        {
            var upss = new UPSTimeInTransit.UPSSecurity();

            AddUpsServiceAccessToken(upss);
            AddUserNameToken(upss);
            upsService.UPSSecurityValue = upss;
        }
 private void AddUpsSecurity(TimeInTransitService upsService)
 {
     var upss = new UPSTimeInTransit.UPSSecurity();
     AddUpsServiceAccessToken(upss);
     AddUserNameToken(upss);
     upsService.UPSSecurityValue = upss;
 }