久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

php7使用SSL協議訪問webservice出現問題

瀏覽:140日期:2024-04-13 17:22:22

問題描述

錯誤為:SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://xxxxx/api?wsdl' : failed to load external entity "https://xxxxxxx/api?wsdl" in D:wwwcompare.php:22 Stack trace: #0 D:wwwcompare.php(22): SoapClient->SoapClient('https://xxx...', Array) #1 {main}

代碼如下:

$opts =array('http' => array('user_agent' => 'PHPSoapClient'),'ssl'=>array('verify_peer'=>false ,'verify_host'=>false,"verify_peer_name"=>false));

$url="https://xxxxxxx/api?wsdl";

$params= array('encoding' => 'UTF-8','soap_version'=>SOAP_1_1,'trace' => 1, "exceptions" => 1, "connection_timeout" => 180,'username' => 'xx', 'password' => '*****','stream_context' => stream_context_create($opts));

$client =new SoapClient($url,$params);

另外php.ini配置沒有問題,openssl和soap已經打開

請問下各位大佬,怎么解決????

問題解答

回答1:

系統環境為windows2012+apche2.4+PHP7.2

標簽: web
相關文章:
主站蜘蛛池模板: 镇宁| 盐边县| 壤塘县| 怀柔区| 康平县| 同心县| 洛隆县| 仙桃市| 永靖县| 阿巴嘎旗| 东乌珠穆沁旗| 高碑店市| 凌源市| 金沙县| 云梦县| 普安县| 阿拉尔市| 手游| 松溪县| 临澧县| 开封县| 邵阳市| 广灵县| 保靖县| 闽清县| 玛沁县| 江陵县| 合作市| 仪征市| 方正县| 伊春市| 辰溪县| 陈巴尔虎旗| 保康县| 抚远县| 安塞县| 湘潭县| 桐乡市| 乌拉特后旗| 襄樊市| 临漳县|