Magento’s SOAP API references its own WSDL, making the magento instance depend on its own api endpoint.
If it is not possible to connect to the SOAP API from the Hypernode, you will get this error when trying to perform requests.
Hypernodes are configured to support HTTP requests from the server itself, without the need to add your domain to the
/etc/hosts as suggested in many articles online.
If you get this error, some configuration or error is with withholding the Magento installation to connect to it’s own API endpoint.
Magento constructs the WSDL URL based on your Magento instance base URL. This means that if your Magento store is not accessible from the the server itself, SOAP server will not be able to load WSDL during initialisation. As a result you encounter this error.
Table of contents
Test if your SOAP API is available for Magento
To verify if it is possible to connect to the Magento API, you can use curl:
curl -v https://$SITE/index.php/api/index/index/wsdl/1/
This should return the XML schema:
<definitions xmlns:typens="urn:Magento" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" name="Magento" targetNamespace="urn:Magento">
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Magento">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/
If you are not able to
curl for the WSDL, chances are high this may be the issue.
Check if the user agent of the SOAP client is rate limited
If the source IP of the SOAP client is rate limited, find the corresponding rate limit
/var/log/nginx/access.log and add the user agent to the user agent mapping or the IP rate limit whitelist.
if the IP of the server is allowed to make HTTP requests
If you are using a white and or blacklist to allow and deny IP’s, make sure the IP of the Hypernode itself and the local host IP (
127.0.0.1) are both present in the list(s).
In some cases the WSDL cache file in
/tmp/ is corrupted, causing the same error.
If you run into this issue, use the following workaround to recache your WSDL file: