public static bool KisiVeCuzdanDogrula(long tCKimlikNo, string ad, string soyad, bool soyadYok, int?dogumGun, bool dogumGunYok, int?dogumAy, bool dogumAyYok, int dogumYil, string cuzdanSeri, int?cuzdanNo, string tCKKSeriNo)
        {
            KPSPublicV2.KPSPublicV2SoapClient client = new KPSPublicV2.KPSPublicV2SoapClient(KPSPublicV2.KPSPublicV2SoapClient.EndpointConfiguration.KPSPublicV2Soap);
            var response = client.KisiVeCuzdanDogrulaAsync(tCKimlikNo, ad, soyad, soyadYok, dogumGun, dogumGunYok, dogumAy, dogumAyYok, dogumYil, cuzdanSeri, cuzdanNo, tCKKSeriNo).Result;

            return(response.Body.KisiVeCuzdanDogrulaResult);
        }
示例#2
0
        public async Task <ServiceResponse <bool> > KisiVeCuzdanDogrulaAsync(KisiVeCuzdanDogrulaRequestModel request)
        {
            try
            {
                var service  = new KPSPublicV2.KPSPublicV2SoapClient(KPSPublicV2.KPSPublicV2SoapClient.EndpointConfiguration.KPSPublicV2Soap12);
                var response = await service.KisiVeCuzdanDogrulaAsync(request.TCKimlikNo, request.Ad, request.Soyad, request.SoyadYok,
                                                                      request.DogumGun, request.DogumGunYok, request.DogumAy, request.DogumAyYok, request.DogumYil, null, null, request.TCKKSeriNo);

                return(new ServiceResponse <bool>(response.Body.KisiVeCuzdanDogrulaResult, true, 100, "asd"));

                if (response.Body != null)
                {
                    return(new ServiceResponse <bool>(response.Body.KisiVeCuzdanDogrulaResult, true, 100, "asd"));
                }
            }
            catch (Exception ex)
            {
                return(new ServiceResponse <bool>(ex));
            }
        }