Making a query through SoapClient() I receive the following error message with PHP, the truth is that I had never worked with this type of application
<?php
try{
$opts = array(
'http' => array (
'user_agent' => 'PHPSoapClient'
)
);
$context = stream_context_create($opts);
$soapClientOptions = array(
'stream_context' => $context,
'cache_wsdl' => WSDL_CACHE_NONE
);
$cliente = new SoapClient($rutWWSDL, $soapClientOptions);
$parametros = array(
'security' => $security,
'txn' => 'MANCOMPRANOR',
'message' => $message
);
$respuesta = $cliente->cardtransaction($parametros);
echo '<pre>'; print_r($respuesta); echo '</pre>';
}
catch(Exception $e){
echo 'Exception capturada: ', $e->getMessage(), "\n";
}
?>
I guess the error may be in some parameter of the $opts options, but I'm not sure how to fix it
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://... : failed to load external entity "https://..."