コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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));
        }
コード例 #3
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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 bool MernisServiceReference.KPSPublicSoap.TCKimlikNoDogrulaAsync(TCKimlikNoDogrulaRequest request)
 {
     return(base.Channel.TCKimlikNoDogrulaAsync(request));
 }
コード例 #7
0
 System.Threading.Tasks.Task <TCKimlikNoDogrulaResponse> KPSPublicSoap.TCKimlikNoDogrulaAsync(TCKimlikNoDogrulaRequest request)
 {
     return(base.Channel.TCKimlikNoDogrulaAsync(request));
 }
コード例 #8
0
 TCKimlikNoDogrulaResponse KPSPublicSoap.TCKimlikNoDogrula(TCKimlikNoDogrulaRequest request)
 {
     return(base.Channel.TCKimlikNoDogrula(request));
 }