Boa tarde.
Estou efetuando uma integração via SOAP, utilizando o Web Service VTEX.
Utilizo PHP 7.3.5
Segue trecho do código:
<?php
try {
$arrContextOptions=array("ssl"=>array( "verify_peer"=>false, "verify_peer_name"=>false,'crypto_method' => STREAM_CRYPTO_METHOD_TLS_CLIENT));
$options = array(
'soap_version'=>SOAP_1_2,
'exceptions'=>true,
'trace'=>1,
'cache_wsdl'=>WSDL_CACHE_NONE,
'stream_context' => stream_context_create($arrContextOptions)
);
$client = new SoapClient('https://webservice-suvinil.vtexcommerce.com.br/service.svc?wsdl', $options);
} catch (Exception $e) {
echo "<h2>Exception Error!</h2>";
echo $e->getMessage();
}
?>
Ao rodar o script, o erro abixo é retornado:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://webservice-suvinil.vtexcommerce.com.br/service.svc?wsdl' : failed to load external entity "https://webservice-suvinil.vtexcommerce.com.br/service.svc?wsdl"
Pesquisei muito, mas não achei solução.
Alguém poderia me ajudar, por favor?
Obrigado.