Im having a problem with SoapClient (PHP 7.0) to parse wsdl.
Im getting this error:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://ws.ocasa.com/testecommerce/service.asmx?wsdl' : failed to load external entity "https://ws.ocasa.com/testecommerce/service.asmx?wsdl"
If you put this URL in a browser you can see the SOAP, and also in SoapUI it works OK.
I'm using laravel 5.4, and my code is:
$client = new \SoapClient('https://ws.ocasa.com/testecommerce/service.asmx?wsdl',
['soap_version'=>SOAP_1_2]);
I noticed that that website is under SSLv3. In order to figure out what's the problem, I also noticed that I cannot get the content of the WSDL:
$content = file_get_contents('https://ws.ocasa.com/testecommerce/service.asmx?wsdl');
And I get this error
file_get_contents(): Failed to enable crypto
I don't know if its something in my PHP.ini. But if I change to this other WSDL:
https://id3check.gb.co.uk/gbportalinternational/aspx/id3check_1b.asmx?WSDL
Everything works fine, the parsing and getting the content.
Thank you