public async Task<bool> Get(long nationalId, string name, string surname, int year) {

            // https://tckimlik.nvi.gov.tr
            // https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx
            // http://ercanbozkurt.blogspot.com/2009/09/tc-kimlik-no-dogrulama-algoritmas.html
            // Onemli NOT: Servise dogrulama icin gonderilecek ad ve soyad bilgileri tamamen buyuk harflerle yazilmis olarak gonderilmelidir.

            string upercaseName = name.ToUpper(_trCulture);
            string upercaseSurname = surname.ToUpper(_trCulture);

            KPSPublicSoapClient soapClient = new KPSPublicSoapClient();
            TCKimlikNoDogrulaResponse response = await soapClient.TCKimlikNoDogrulaAsync(nationalId, upercaseName, upercaseSurname, year);
            return response.Body.TCKimlikNoDogrulaResult;
        }
예제 #2
0
 public KPSPublicSoapClient(EndpointConfiguration endpointConfiguration) :
     base(KPSPublicSoapClient.GetBindingForEndpoint(endpointConfiguration), KPSPublicSoapClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
 public bool CheckIfRealPerson(IEntity gamer)
 {
     EDevletServiceReference.KPSPublicSoapClient client = new KPSPublicSoapClient();
     return(client.TCKimlikNoDogrula(gamer.NationalityId, gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.DateOfBirth.Year));
 }
예제 #4
0
        public bool CheckIfRealPerson(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(gamer.IdentityNumber, gamer.FirstName, gamer.LastName, gamer.BirthYear).Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool Validate(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(client.TCKimlikNoDogrula(gamer.IdentityNumber, gamer.FirsName.ToUpper(), gamer.LastName.ToUpper(), gamer.BirthYear));
        }
예제 #6
0
        public bool CheckIfRealPerson(Frisky frisky)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(frisky.IdentityID), frisky.FirstName.ToUpper(), frisky.LastName.ToUpper(), frisky.Date.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #7
0
        public static bool IDCheck(long idNumber, string name, string surname, int dateyear)
        {
            KPSPublicSoapClient dogrula = new KPSPublicSoapClient();

            return(dogrula.TCKimlikNoDogrula(idNumber, name, surname, dateyear));
        }
예제 #8
0
        /// <summary>
        /// Mernis Doğrulama
        /// </summary>
        public bool CustomerCheck(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(client.TCKimlikNoDogrula(Convert.ToInt64(customer.IdentyNumber), customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.BirthYear));
        }
예제 #9
0
 public CitizenManager(KPSPublicSoapClient client)
 {
     _client = client;
 }
예제 #10
0
        public bool CheckIfRealPerson(Customer customer)
        { // Araştırmalar sonucu bu kullanım ortaya çıktı ??
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(customer.NationalityId, customer.FirstName, customer.LastName, customer.DateOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool Validate(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(gamer.IdentityNumber, gamer.FirstName, gamer.LastName, gamer.BirthYear))).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #12
0
        public bool CheckIfRealGamer(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(TCKimlikNo: Convert.ToInt64(gamer.NationalityId), Ad: gamer.FirstName.ToUpper(), Soyad: gamer.LastName.ToUpper(), DogumYili: gamer.DateOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #13
0
        public bool Validate(User user)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(user.NationalNumber), user.FirstName.ToUpper(), user.LastName.ToUpper(), user.BirthYear.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #14
0
        public bool GamerCheckService(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(long.Parse(gamer.NationalityId), gamer.FirstName, gamer.LastName, (gamer.DateOfBirth).Year).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #15
0
        public bool isExist(Customer user)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(client.TCKimlikNoDogrula(Convert.ToInt64(user.Tc), user.Firstname.ToUpper(), user.Lastname.ToUpper(), user.Dateofbirth.Year));
        }
예제 #16
0
        public bool CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(client.TCKimlikNoDogrulaAsync((Convert.ToInt64(customer.NationaltyId), customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DateOfBirth.Year)));
        }
예제 #17
0
        public bool CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(client.TCKimlikNoDogrula(Convert.ToInt32(customer.NationalityId), customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DateofBirt.Year).ConfigureAwait(false));
        }
        public bool CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(customer.NationalityId), customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DateOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #19
0
 public bool Validate(Player player)
 {
     MernisServiceReference.KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
     return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(86087626722, Ad: "ALİ", Soyad: "YILMAZ", DogumYili: 1650))).Result.Body.TCKimlikNoDogrulaResult);
 }
예제 #20
0
        public bool IfRealPerson(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(gamer.NationalityId), gamer.FirstName, gamer.LastName, gamer.BirthYear.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #21
0
        public async Task <TCKimlikNoDogrulaResponse> CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(await client.TCKimlikNoDogrulaAsync(Convert.ToInt64(customer.NationalityId), customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DateOfBirth.Year));
        }
예제 #22
0
        public bool CheckCustomer(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(Convert.ToInt64(customer.NationalityId), customer.FirstName.ToUpper(), customer.LastName.ToUpper(), Convert.ToInt32(customer.BirthDate)).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #23
0
 public UserValidationManager(KPSPublicSoapClient service)
 {
     _service = service;
 }
예제 #24
0
        public bool CheckGamerInfo(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(gamer.IdNo), gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.DateOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool CheckIsPlayerReal(Player player)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(player.NationaityId), player.Name, player.Surname, player.DateOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #26
0
 public bool CheckIfRealPerson(Player player)
 {
     KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
     return client.TCKimlikNoDogrulaAsync((new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(player.NationalIdenty, player.FirstName, player.LastName, player.DateofBirthYear))).Result.Body.TCKimlikNoDogrulaResult;
 }
예제 #27
0
        public bool CheckPerson(Person person)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(person.TC, person.Ad, person.Soyad, person.DogumYili))).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #28
0
        public bool CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(client.TCKimlikNoDogrula(long.Parse(customer.NationalityId), customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DateOfBirth.Year));
        }
예제 #29
0
        public bool CheckPerson(Person person) //kişi doğruluğu kontrolü <yabancı-türk>
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(person.NationalIdentity, person.FirstName, person.LastName, person.DateOfBirthYear))).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #30
0
 public KPSPublicSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(KPSPublicSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
예제 #31
0
        public bool CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(client.TCKimlikNoDogrulaAsync(customer.IdentityNo, customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DOB.Year).IsCompletedSuccessfully);
        }