예제 #1
0
        public bool Validate(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(Convert.ToInt64(gamer.TcId),
                                                 gamer.FirstName.ToUpper(),
                                                 gamer.LastName.ToUpper(),
                                                 gamer.DateOfBirth.Year).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #2
0
        public bool CheckIfRealPerson(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(Convert.ToInt64(gamer.NationalId),
                                                 gamer.FirstName.ToUpper(),
                                                 gamer.Surname.ToUpper(),
                                                 gamer.DateOfBirth.Year).Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool CheckIfRealPerson(Member member)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(
                                                     new TCKimlikNoDogrulaRequestBody(
                                                         Convert.ToInt64(member.TcNo), member.FirstName.ToUpper(), member.LastName.ToUpper(), member.DateOfBirth.Year
                                                         ))).Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool CheckIfRealGamer(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap12);

            return(client.TCKimlikNoDogrulaAsync(Convert.ToInt64(customer.NationalityId),
                                                 customer.FirstName.ToUpper(),
                                                 customer.LastName.ToLower(),
                                                 customer.DateOfBirth.Year).Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #5
0
        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, customer.LastName, customer.DateOfBirth)))
                   .Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #6
0
        public bool CheckPerson(Person person)
        {
            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);
        }
        public bool CheckIfRealPlayer(Player player)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            var result = client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(player.NationalIdentityNumber), player.FirstName.ToUpper(), player.LastName.ToUpper(), player.TimeOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult;

            // todo: bir köşede kalsın. çözmek gerek
            return(result);
        }
예제 #8
0
        public bool CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(
                       new TCKimlikNoDogrulaRequest
                           (new TCKimlikNoDogrulaRequestBody(16015932120, Ad: "Kübra", Soyad: "Moğul", DogumYili: 1995)))
                   .Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

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

            return(client.TCKimlikNoDogrulaAsync(
                       new TCKimlikNoDogrulaRequest
                           (new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(gamer.NationalityId), gamer.FirstName.ToUpper(),
                                                             gamer.LastName.ToUpper(), gamer.BirthYear))).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 CheckIfRealPerson(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
            var result = client.TCKimlikNoDogrulaAsync(Convert.ToInt64(gamer.NationalityId),
                                                       gamer.FirstName,
                                                       gamer.LastName,
                                                       gamer.BirthYear.Year).Result;

            return(result.Body.TCKimlikNoDogrulaResult);
        }
        public bool Validate(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
            var response = client.TCKimlikNoDogrulaAsync(32638672298, gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.BirthYear);

            response.Wait();
            bool result = (response.Result.Body.TCKimlikNoDogrulaResult) ? true:  false;

            return(result);
        }
예제 #14
0
        public bool CheckIfRealPerson(Gamer gamer)
        {
            //KPSPublicSoapClient client = new KPSPublicSoapClient();
            //return client.TCKimlikNoDogrula(Convert.ToInt64(musteri.TcNo), musteri.Adi.ToUpper(),musteri.Soyad.ToUpper(),musteri.DogumYili.Year);

            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap12);

            //return client.TCKimlikNoDogrulaAsync(customer.NationalityId, customer.FirstName, customer.LastName, customer.DateOfBirth.Year);
            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(gamer.NationalityId), gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.DateOfBirth.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool CheckPerson(Person person)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            // Mernis check is here. (Official channel of Government.)
            return(client.TCKimlikNoDogrulaAsync(
                       new TCKimlikNoDogrulaRequest
                           (new TCKimlikNoDogrulaRequestBody(person.NationalIdentitiy, person.Firstname, person.Lastname, person.DateOfBirthYear)))
                   .Result.Body.TCKimlikNoDogrulaResult);
        }
        public async Task <IActionResult> Post([FromBody] object vatandasJson)
        {
            Vatandas vatandas = JsonConvert.DeserializeObject <Vatandas>(vatandasJson.ToString());
            //Vatandas vatandas = System.Text.Json.JsonSerializer.Deserialize<Vatandas>(vatandasx.ToString());

            KPSPublicSoapClient servis = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
            var sonuc = await servis.TCKimlikNoDogrulaAsync(vatandas.TCKimlikNo, vatandas.Ad, vatandas.Soyad, vatandas.DogumYili);

            return(Ok(JsonConvert.SerializeObject(sonuc.Body.TCKimlikNoDogrulaResult)));
        }
예제 #17
0
        public bool CheckIfRealPerson(Gamer gamer)
        {
            var result = client.TCKimlikNoDogrulaAsync((long)Convert.ToUInt64(gamer.NationalityId), gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.BirthYear).Result.Body.TCKimlikNoDogrulaResult;

            if (result)
            {
                Console.WriteLine("MernisServiceAdapter ile kontrol edildi");
            }
            return(result);
        }
예제 #18
0
        public bool  CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
            var response = client.TCKimlikNoDogrulaAsync(customer.NationalityId, customer.FirstName.ToUpper(),
                                                         customer.LastName.ToUpper(), customer.DateOfBirth.Year);



            return(response.Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #19
0
        public bool CheckUserValidation(User user)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            return(client.TCKimlikNoDogrulaAsync(
                       new TCKimlikNoDogrulaRequest
                           (new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(user.NationalityId),
                                                             user.FirstName.ToUpper(), user.LastName.ToUpper(), user.DateOfBirth.Year)))
                   .Result.Body.TCKimlikNoDogrulaResult);
        }
예제 #20
0
        async Task <bool> CheckIfRealPersonAsync(IPerson person)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
            var returnobject           = await client.TCKimlikNoDogrulaAsync
                                             (Convert.ToInt64(person.NationalId),
                                             person.FirstName,
                                             person.LastName,
                                             Convert.ToInt32(person.DateOfBirth.Year));

            return(returnobject.Body.TCKimlikNoDogrulaResult);
        }
예제 #21
0
        public bool CheckIfRealPlayer(Player player)
        {
            KPSPublicSoap client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

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

            return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest
                                                     (new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(gamer.IdentityNumber),
                                                                                       gamer.FirstName.ToUpper(),
                                                                                       gamer.LastName.ToUpper(),
                                                                                       gamer.DateYear.Year))).Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool CheckIfRealPerson(Customer customer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient();

            return(client.TCKimlikNoDogrulaAsync(
                       customer.NationalyId,
                       customer.FirstName.ToUpper(),
                       customer.LastName.ToUpper(),
                       customer.DateOfBirth.Year
                       ));
        }
예제 #24
0
        public bool ChechIfRealPerson(Gamer gamer)
        {
            KPSPublicSoapClient kPSPublicSoapClient = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap12);
            var result = kPSPublicSoapClient.TCKimlikNoDogrulaAsync(
                Convert.ToInt64(gamer.NationalityNo),
                gamer.FirstName.ToUpper(),
                gamer.LastName.ToUpper(),
                gamer.DateOfBirth.Year);

            return(result.Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool CheckIfRealPerson(Gamer gamer)
        {
            //MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient();
            //return client.TCKimlikNoDogrulaAsync(Convert.ToInt64(gamer.NationaltyId), gamer.FirstName.ToUpper(), gamer.LastName.ToUpper(), gamer.DateOfBirth.Year);

            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);
            var result = client.TCKimlikNoDogrulaAsync(Convert.ToInt64(gamer.NationaltyId), gamer.FirstName.ToUpper(),
                                                       gamer.LastName.ToUpper(), gamer.DateOfBirth.Year).Result;

            return(result.Body.TCKimlikNoDogrulaResult);
        }
        public async Task <bool> Validate(User user)
        {
            BasicHttpsBinding binding = new BasicHttpsBinding();
            EndpointAddress   address = new EndpointAddress("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL");

            KPSPublicSoapClient client = new KPSPublicSoapClient(binding, address);
            var response = await client.TCKimlikNoDogrulaAsync(user.TCKN, user.Name.ToUpper(), user.Surname.ToUpper(), user.Year);

            bool result = response.Body.TCKimlikNoDogrulaResult;

            return(result);
        }
예제 #27
0
        public bool CheckRealPerson(Customer customer)
        {
            //KPSPublicSoapClient client = new KPSPublicSoapClient();
            //return client.TCKimlikNoDogrula(Convert.ToInt64(customer.NationaltiyId), customer.FirstName.ToUpper(),
            //    customer.LastName.ToUpper(), customer.BirthTime.Year);

            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap12);

            var result = client.TCKimlikNoDogrulaAsync(Convert.ToInt64(customer.NationaltiyId), customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.BirthTime.Year);

            return(result.Result.Body.TCKimlikNoDogrulaResult);
        }
        public bool Validate(User user)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            Console.WriteLine("Adapter çalıştı");
            var result = client.TCKimlikNoDogrulaAsync(
                new TCKimlikNoDogrulaRequest
                    (new TCKimlikNoDogrulaRequestBody(Convert.ToInt64(user.NationalityId), user.FirstName, user.LastName, user.DateOfBirth.Year)))
                         .Result.Body.TCKimlikNoDogrulaResult;

            return(result);
        }
예제 #29
0
        public bool CheckIfRealPerson(Player player)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap12);
            Task <TCKimlikNoDogrulaResponse> response = client.TCKimlikNoDogrulaAsync(Convert.ToInt64(player.NationalityId),
                                                                                      player.FirstName.ToUpper(),
                                                                                      player.LastName.ToUpper(),
                                                                                      player.DateOfBirth.Year);

            response.Wait();
            return(response.Result.Body.TCKimlikNoDogrulaResult);

            // return true;  Hizli Test icin acilabilir
        }
예제 #30
0
        public bool GamerCheck(Gamer gamer)
        {
            KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap);

            TCKimlikNoDogrulaRequestBody body = new TCKimlikNoDogrulaRequestBody(
                (Convert.ToInt64(gamer.TcNo)),
                gamer.FirstName.ToUpper(),
                gamer.LastName.ToUpper(),
                gamer.DateOfBirth.Year);
            TCKimlikNoDogrulaRequest req = new TCKimlikNoDogrulaRequest(body);

            return(client.TCKimlikNoDogrulaAsync(req).Result.Body.TCKimlikNoDogrulaResult);
        }
        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;
        }