I have been trying for days to solve this problem I saw it several times in consultations and they do not give a solution. this is the error message and this code
Warning: SoapClient :: SoapClient () [soapclient.soapclient]: I / O warning: failed to load external entity " link " in C: \ AppServ \ www \ wsdl \ index.php on line 4
my code is
$client = new SoapClient('https://ws5.pide.gob.pe/services/ReniecConsultaDni?WSDL');
var_dump($client->__getFunctions());
I also did the test with nusoap
require_once('lib/nusoap.php');
$wsdl="https://ws5.pide.gob.pe/services/ReniecConsultaDni?wsdl";
$client=new nusoap_client($wsdl, true);
$param=array('nuDniConsulta'=>'xxx','nuDniUsuario'=>'xxx','nuRucUsuario'=>'20xxx','password'=>'xxx');
$dni = $client->call('consultar',$param);
header("Content-Type:text/html");
// hacemos la impresion de informacion
print_r ($dni);
resultado
Array
(
[faultcode] => ns0:Server
[faultstring] => HV000116: The object to be validated must not be null.
)
If someone could guide me to the web service I get normal with soapui and with visual studio but with php is my problem.