I'm trying to connect to a SOAP webservice using a php client.
The client I ride like this:
$client = new SoapClient('https://urlwebservice?wsdl);
When I call the function:
$client->__getFunctions();
I get the following return:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'urlwebservice?wsdl' : failed to load external entity 'urlwebservice'
When accessing the url in the browser, I get a 403-Forbidden, but if I have an A1 certificate installed on the machine it asks if I want to use it and then open the webservice with its wsdl xml.
Could this error occur with sending the certificate? Or is it another mistake? To send the certificate I did this:
$params = array(
'local_cert' => 'path/to/cert.cer',
'passphrase' => 'chave' //já passei com e sem a chave
);
$client = new SoapClient('https://urlwebservice?wsdl', $params);
I have already passed other parameters that I researched through the internet, but in all cases the error remains the same!
Has anyone ever been through this?