public bool CheckPerson(Person person) { //mernis kontrolü yapılacak. KPSPublicSoapClient client = new KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap); try { return(client.TCKimlikNoDogrulaAsync(new TCKimlikNoDogrulaRequest(new TCKimlikNoDogrulaRequestBody(person.NationalId, person.FirstName, person.LastName, person.DateOfBirthYear))).Result.Body.TCKimlikNoDogrulaResult); } catch (Exception e) { Console.WriteLine("The service operation timed out. " + e.Message); client.Abort(); Console.ReadLine(); } // Catch the contractually specified SOAP fault raised here as an exception. return(true); // return client.TCKimlikNoDogrulaAsync(person.NationalId, person.FirstName, person.LastName, person.DateOfBirthYear).Result.Body.TCKimlikNoDogrulaResult; }