簡體   English   中英

Magento Soap客戶端無法在https上運行

[英]Magento Soap client is not working on https

Magento soap api connection whenever try to use https as secure url我都面臨Magento soap api connection whenever try to use https as secure url問題。

我的magento系統version CE 1.7 and soap version 1

系統網址設置為

Secure url is  https://www.example.com/
Unsecured  is  http://www.example.com/

當我安全地更改為http://www.example.com/時(不帶https)

然后,肥皂客戶端正常工作。

Also,when secure is https://www.example.com ,it throw below error:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.example.com/index.php/api/soap/index/?wsdl' : failed to load external entity "https://www.example.com/index.php/api/soap/index/?wsdl

我的代碼是

try{

$cli = new SoapClient('http://www.example.com/index.php/api/soap/index/?wsdl');
$session = $cli->login('marketplace_usr', 'ezvendorplus');
$result = $cli->call($session, 'catalog_product.info', 10887);
var_dump($result);
}
catch(Exception $e){
    echo '<pre>';
    var_dump($e);
    }

檢查是否啟用了php_openssl擴展名。 如果沒有,請啟用它。

這是服務器站點問題。托管服務提供商已通過以下方式解決了該問題

add a ssl vhost on private ip for www.example.com and reload apache
and also made a host file entry

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM