public bool IdentityNumberVerification(ACompany model) { try { KPSPublicSoapClient client = new KPSPublicSoapClient(new KPSPublicSoapClient.EndpointConfiguration()); TCKimlikNoDogrulaRequest requestData = new TCKimlikNoDogrulaRequest(); requestData.Body = new TCKimlikNoDogrulaRequestBody() { Ad = model.Name, Soyad = model.Surname, DogumYili = model.BirthYear, TCKimlikNo = model.IdentityNumber }; var response = client.TCKimlikNoDogrulaAsync(requestData)?.Result.Body; if (!response.TCKimlikNoDogrulaResult) { return(false); } return(true); } catch (Exception ex) { return(false); } }
public System.Threading.Tasks.Task <TCKimlikNoDogrulaResponse> TCKimlikNoDogrulaAsync(long TCKimlikNo, string Ad, string Soyad, int DogumYili) { TCKimlikNoDogrulaRequest inValue = new TCKimlikNoDogrulaRequest(); inValue.Body = new TCKimlikNoDogrulaRequestBody(); inValue.Body.TCKimlikNo = TCKimlikNo; inValue.Body.Ad = Ad; inValue.Body.Soyad = Soyad; inValue.Body.DogumYili = DogumYili; return(((KPSPublicSoap)(this)).TCKimlikNoDogrulaAsync(inValue)); }
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 bool TCKimlikNoDogrula(long TCKimlikNo, string Ad, string Soyad, int DogumYili) { TCKimlikNoDogrulaRequest inValue = new TCKimlikNoDogrulaRequest(); inValue.Body = new TCKimlikNoDogrulaRequestBody(); inValue.Body.TCKimlikNo = TCKimlikNo; inValue.Body.Ad = Ad; inValue.Body.Soyad = Soyad; inValue.Body.DogumYili = DogumYili; TCKimlikNoDogrulaResponse retVal = ((KPSPublicSoap)(this)).TCKimlikNoDogrula(inValue); return(retVal.Body.TCKimlikNoDogrulaResult); }
public bool CheckIfRealPerson(Oyuncu oyuncu) { //KPSPublicSoapClient client = new KPSPublicSoapClient(); //client.TCKimlikNoDogrulaAsync(oyuncu.TC, oyuncu.Name, oyuncu.Surname, oyuncu.Dogum); // return client.TCKimlikNoDogrulaAsync(oyuncu.TC, oyuncu.Name, oyuncu.Surname, oyuncu.Dogum); TCKimlikNoDogrulaRequestBody client = new TCKimlikNoDogrulaRequestBody(); TCKimlikNoDogrulaRequest request = new TCKimlikNoDogrulaRequest(); client.Ad = oyuncu.Name; client.Soyad = oyuncu.Surname; client.TCKimlikNo = oyuncu.TC; request.Body = client; return(true); }
bool MernisServiceReference.KPSPublicSoap.TCKimlikNoDogrulaAsync(TCKimlikNoDogrulaRequest request) { return(base.Channel.TCKimlikNoDogrulaAsync(request)); }
System.Threading.Tasks.Task <TCKimlikNoDogrulaResponse> KPSPublicSoap.TCKimlikNoDogrulaAsync(TCKimlikNoDogrulaRequest request) { return(base.Channel.TCKimlikNoDogrulaAsync(request)); }
TCKimlikNoDogrulaResponse KPSPublicSoap.TCKimlikNoDogrula(TCKimlikNoDogrulaRequest request) { return(base.Channel.TCKimlikNoDogrula(request)); }