我在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以及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);
}
答案 0 :(得分:0)
检查是否启用了php_openssl扩展。如果不是 - 启用它。
答案 1 :(得分:0)
这是服务器站点问题.Hosting提供程序通过
解决了问题add a ssl vhost on private ip for www.example.com and reload apache
and also made a host file entry