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; }
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)); }
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)); }
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); }
public static bool IDCheck(long idNumber, string name, string surname, int dateyear) { KPSPublicSoapClient dogrula = new KPSPublicSoapClient(); return(dogrula.TCKimlikNoDogrula(idNumber, name, surname, dateyear)); }
/// <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)); }
public CitizenManager(KPSPublicSoapClient client) { _client = client; }
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); }
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); }
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); }
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); }
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)); }
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))); }
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); }
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); }
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); }
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)); }
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); }
public UserValidationManager(KPSPublicSoapClient service) { _service = service; }
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); }
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; }
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); }
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)); }
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); }
public KPSPublicSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(KPSPublicSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public bool CheckIfRealPerson(Customer customer) { KPSPublicSoapClient client = new KPSPublicSoapClient(); return(client.TCKimlikNoDogrulaAsync(customer.IdentityNo, customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DOB.Year).IsCompletedSuccessfully); }