开发者

Unable to connect to Magento SOAP API v2 due to “failed to load external entity” after giving IP restriction in .htaccess file

I am unable to connect to the Magento SOAP API 开发者_C百科v2 using PHP. The error that occurs is:

PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.mydomain.com/index.php/api/v2_soap/index/wsdl/1/' : failed to load external entity "http://www.mydomain.com/index.php/api/v2_soap/index/wsdl/1/"

I gave IP restriction in .htaccess file such that only I will be able to view the site while development.

When I remove the IP restriction from the .htaccess file it works fine.

Any help would would be great as it's mandatory keep IP restriction!


You probably need to add the server's ip address to the whitelist as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜