<?php
$client = new SoapClient("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL");
try{
$requestData = array(
"TCKimlikNo" =>"xxx",
"Ad" => "BURAK",
"Soyad" => "xxx",
"DogumYili" => "xxx"
);
$result = $client->TCKimlikNoDogrula($requestData);
if ($result->TCKimlikNoDogrulaResult){
echo "TC Kimlik Numarası Geçerli";
}else{
echo "TC Kimlik Numarası Hatalı";
}
}
catch (Exception $ex){
echo $ex->faultstring;
}
?>çıkan sonuç:Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL' : Start tag expected, '<' not found in /home/wewewew/public_html/test.php:3 Stack trace: #0 /home/wewewew/public_html/test.php(3): SoapClient->SoapClient('https://tckimli...') #1 {main} thrown in /home/wewewew/public_html/test.php on line 3
