postnl/postnl-magento2

Hello, pickup locations are not showing due to this error on my magento 2 site . yogini.nl, please help

Closed this issue · 1 comments

[2023-06-02 11:12:25] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:12:26] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:12:36] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:12:36] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:12:36] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:12:37] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:19:01] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:26:58] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:26:59] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:26:59] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []
[2023-06-02 11:27:00] postnl_logging.CRITICAL: [] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl' : failed to load external entity "https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl"
[] []

Hi @ishanchatterjee ,

The issue might be related to your server configuration.

  • Perhaps there's a Content Security Policy active that prevents loading these sources. You can check this with the web inspector of your browser.
  • Check if php_openssl and/or SOAP PHP extensions are available and enabled. You could try the following command on your server:
php -r '$client = new \SoapClient("https://api.postnl.nl/shipment/v2_2/calculate/date/soap.wsdl", ["trace" => 1,"exceptions" => true]); var_dump($client->__getFunctions());'

It should return something like this:

array(2) {
  [0]=>
  string(80) "GetDeliveryDateResponse GetDeliveryDate(GetDeliveryDateRequest $GetDeliveryDate)"
  [1]=>
  string(71) "GetSentDateResponse GetSentDate(GetSentDateRequest $GetSentDateRequest)"
}

Additionally,

php -m

command will allow you to check if all necessary PHP extensions are installed.

<H1>