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

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

Overview


This article explains why error "SOAP-ERROR: Parsing WSDL: Couldn't load from / failed to load external entity" happens and how to fix it
This error can happen when you configure a Magento1 integration and save it, the full error message is : 

SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.website.com/index.php/api/soap/?wsdl%27 : failed to load external entity "https://www.website.com/index.php/api/soap/?wsdl%22

This error is due to wrong Magento1 server configuration.


Option1 : url is wrong


If you open url https://www.website.com/index.php/api/soap/?wsdl in your browser, you should see xml code like this : 



If you dont get this result,
  1. check HT access or IP restrictions
  2. Flush WSDL cache running this command line : rm /tmp/wsdl*

Option2 : different domains


If you open url https://www.website.com/index.php/api/soap/?wsdl in your browser, you will see xml code
At the very end of the document, you will find the service url : 



If the url highlighted is different from the original url, your server is wrongly configured

Option3 : the server can not reach himself

To get the webservices working, Magento server must be able to send an HTTP request to himself.
To test it, you can run the following command line from the server : wget https://www.website.com/index.php/api/soap/?wsdl
If result is not successfull (http code 200) then it means that your server is wrongly configured



    • Related Articles

    • Prestashop integration error : HTTP-Error 500 (internal server error)

      Overview  You encountered a problem when using the wizard to integrate your prestashop . This article explains what the problem is and how to fix it. How to fix This error comes from a compatibility issue between the PHP version on your server and ...
    • Magento 1 - Connect your instance to myFulfillment

      Overview The integration between Connect and Magento 1 will : import products and orders from Magento to Connect Send shipping confirmation and stock updates to Magento. When you integrate Connect with a Magento 1 website, you must keep in mind the ...
    • Items in error & items ignored

      Items in error & items ignored When some items are in error or ignored during any feed execution, myFulfillment will register details about it. Currently, myFulfillment register details about items processed through feeds in 2 cases : Items in error ...
    • Magento 2 - MSI Integration

      Overview Magento2 MSI Integration allows to synchronise a warehouse with a Magento2 MSI Source. To get more information about Magento2 Multi Source Inventory, visit the magento website Prerequire-sites You need a working Magento2 integration before. ...
    • Error banner : X order(s) can not be imported, click here to fix them

      Overview Sometimes myFulfillment isn't able to import an order for various different reason. When this happens, a red banner will appear on the of your screen to help you fix them.  This article will help you understand how to use it and how to ...