Making SOAP-call in PHP and setting SSL version

后端 未结 6 2062
慢半拍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

    As of PHP 5.5.0, I believe you can do

    $client = new SoapClient("https://webtjener09.kred.no/TestWebservice/OppdragServiceSoapHttpPort?WSDL", array(
        'ssl_method' => SOAP_SSL_METHOD_SSLv3
    ));
    

提交回复
热议问题