Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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)));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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
                       ));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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
        }
Ejemplo n.º 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;
        }