R
R
Roman2016-10-27 22:11:05
PHP
Roman, 2016-10-27 22:11:05

SoapClient "SOAP-ERROR https" does not work how to be comrades?

Greetings comrades, I moved to a new debian8.5+nginx+php7.0-fpm server
But SoapClient persistently refuses to work with https, I don’t know what to do anymore.
It works with simple http, but not with https.

PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from ' https://***.ru/WEBService/SearchService.svc/wsdl?

wsdl ' the new one still has an ini file connection

/etc/php/7.0/cli/conf.d/20-soap.ini,

extension=soap.so


phpinfo:
Soap Client 	enabled
Soap Server 	enabled
Directive	Local Value	Master Value
soap.wsdl_cache	1	1
soap.wsdl_cache_dir	/tmp	/tmp
soap.wsdl_cache_enabled	1	1
soap.wsdl_cache_limit	5	5
soap.wsdl_cache_ttl	86400	86400

OpenSSL support 	enabled
OpenSSL Library Version 	OpenSSL 1.0.2j 26 Sep 2016
OpenSSL Header Version 	OpenSSL 1.0.2h 3 May 2016
Openssl default config 	/usr/lib/ssl/openssl.cnf


How to be and what to do I will not know, I will be extremely grateful for the help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2016-10-28
@ronik55

In short, I found interesting settings on the net, they helped

$opts = array('ssl' => array('ciphers'=>'RC4-SHA', 'verify_peer'=>false, 'verify_peer_name'=>false));
$params = array ('encoding' => 'UTF-8', 'verifypeer' => false, 'verifyhost' => false, 'soap_version' => SOAP_1_1, 'trace' => 1, 'exceptions' => 1, "connection_timeout" => 180, 'stream_context' => stream_context_create($opts) );

As far as I understand, the key parameters that saved me are
'verifypeer' => false, 'verifyhost' => false,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question