Connection Webservice SOAP HTTPS PHP (Santander)

0

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?

    
asked by anonymous 23.06.2017 / 16:16

1 answer

0

This is a server error in which you are trying to connect, some authorization, token or security hash, can be specified in the manual, parameters such as

'soapopations' => array(
                'exceptions'         => true ,
                'soap_version'       => SOAP_1_1 ,
                'features'           => SOAP_SINGLE_ELEMENT_ARRAYS ,
                'cache_wsdl'         => WSDL_CACHE_NONE ,
                'connection_timeout' => 500 ,
                'trace'              => true ,
            ),

Have you tried?

    
23.06.2017 / 16:30