ülke olarak TR seçili ise tc doğruluyor sipariş esnasında denemedim o bölümünü bilgim yok çalışıp çalışmamasından.
function dogrula($tc, $ad, $soyad, $yil) {
if(!$ad || strlen($ad) <= 2 || !$soyad || strlen($soyad) <= 2 || !$yil || !$tc){
return false;
}else if(strlen($tc) != 11){
return false;
}else if(strlen($yil) != 4 || !is_numeric($yil)){
return false;
}else{
try{
$url = 'http://tckimlikapi.com/?Ad='.urlencode($ad).'&Soyad='.urlencode($soyad).'&DogumYili='.$yil.'&TCKimlikNo='.$tc;
$resp = file_get_contents($url);
$json = json_decode($resp);
return $json->result == 'OK';
}catch(Exception $hata){
return false;
}
}
}
Buda benden olsun soap istemeden sorgulama yaptırtabilirsin