【问题标题】:Magento Soap client is not working on httpsMagento Soap 客户端无法使用 https
【发布时间】:2014-08-01 09:48:55
【问题描述】:

我在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/(With out https)

那么soap客户端就正常工作了。

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 magento soap https wsdl


    【解决方案1】:

    检查是否启用了 php_openssl 扩展。如果没有 - 启用它。

    【讨论】:

      【解决方案2】:

      这是服务器站点问题。托管服务提供商已通过

      解决了该问题
      add a ssl vhost on private ip for www.example.com and reload apache
      and also made a host file entry
      

      【讨论】:

        猜你喜欢
        • 2016-06-03
        • 1970-01-01
        • 2016-02-21
        • 2020-02-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多