Making SOAP-call in PHP and setting SSL version

后端 未结 6 2056
慢半拍i
慢半拍i 2021-02-07 16:31

I\'ve made several scripts working with external WSDL. I have encountered one I have to integrate into our system that I can\'t get to work. I\'be been trying for a week without

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-07 16:41

    Instead of creating a wrapper, can you try to add the following code fragments?

    $stream_opts = array(
    //      'ssl'=>array('ciphers'=>"3DES" // also working
    //      further ciphers on http://www.openssl.org/docs/apps/ciphers.html
            'ssl'=>array('ciphers'=>"SHA1"
          )
    );
    
    $myStreamContext = stream_context_create($stream_opts);
    $soapOptions['stream_context'] = $myStreamContext;
    $soapClient = new SoapAuthClient("https://...", $soapOptions);
    

    Good luck!

提交回复
热议问题