Swetha
Swetha

Reputation: 263

SOAP-ERROR: Parsing WSDL: Couldn't load from : failed to load external entity

We are getting the following error

SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.example.com/api/v2_soap?wsdl=1' : failed to load external entity "https://www.example.com/api/v2_soap?wsdl=1"

What could possibly be the reason for this SOAP error?

Curlwrappers are already disabled.

As suggested, I checked out this post soap api : Start tag expected, '<' not found' I found that ini_set('display_errors',0); is already turned off. Still unable to overcome the SOAP error.

Upvotes: 1

Views: 19646

Answers (4)

lenybernard
lenybernard

Reputation: 2448

I figured why I experienced this issue. Actually, that was a firewall issue. I did add correctly the rules to allow the secondary server to attack the magento's api but this one needs to reach out itself ! So after some headaches, I did just add a rule on the magento server's firewall to allow itself (the magento server) to reach its own api (kind of external lookup)...

Upvotes: 1

Mukesh
Mukesh

Reputation: 7778

1) Is your application directory password protected?

2) Try accessing like http://www.example.com/index.php/api/v2_soap?wsdl=1

3) Check php soap and xml rpc extensions are enabled or not.

Upvotes: 5

WaPoNe
WaPoNe

Reputation: 336

I had the same issue and I discovered that my provider had closed all server ports and restricted the access to only for some IP (I don't know if that is your case).
After security changes all works fine.

WaPoNe

Upvotes: 3

salgua
salgua

Reputation: 698

I had the same problem upgrading to Magento 1.9.0.1. I solved the problem with this official patch

Upvotes: 2

Related Questions