public bool CheckIfRealPerson(Player player) { MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient(KPSPublicSoapClient.EndpointConfiguration.KPSPublicSoap); return(client.TCKimlikNoDogrulaAsync( new TCKimlikNoDogrulaRequest (new TCKimlikNoDogrulaRequestBody(player.NationalityId, player.FirstName.ToUpper(), player.LastName.ToUpper(), player.DateOfBirth.Year))) .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 KPSPublicSoapClient(EndpointConfiguration endpointConfiguration) : base(KPSPublicSoapClient.GetBindingForEndpoint(endpointConfiguration), KPSPublicSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public bool CheckIfRealPerson(Customer customer) { MernisServiceReference.KPSPublicSoapClient client = new MernisServiceReference.KPSPublicSoapClient(); return(client.TCKimlikNoDogrulaAsync(customer.NationalityId, customer.FirstName.ToUpper(), customer.LastName.ToUpper(), customer.DateOfBirth.Year)); }