Answer the question
In order to leave comments, you need to log in
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
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
Answer the question
In order to leave comments, you need to log in
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) );
'verifypeer' => false, 'verifyhost' => false,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question