SOAP-ERROR: Parsing WSDL: Couldn’t load from URL Failed to load External Entity

Asked

Viewed 585 times

0

I am trying to list the products of Gento 1.9 via SOAP API was working before, after the update of SSL key stopped, someone could help, please

Error:

Fatal error: Uncaught Soapfault Exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t load from 'https://hddrogariadelivery.com.br/api/v2_soap/? wsdl=1' in /var/www/html/testeapi/soapcall_catalog_product_list.php on line 13

test link: https://hddrogariadelivery.com.br/testeapi/soapcall_catalog_product_list.php

Code

<?php

ini_set("soap.wsdl_cache_enabled", 0);
ini_set ("default_socket_timeout", "300");

$api_url_v2 = "https://hddrogariadelivery.com.br/api/v2_soap/?wsdl=1";

$username   = 'gustavo'; // Username
$apikey     = '1111111'; // API Key

echo "<p>WSDL Url: " . $api_url_v2 . "</p>";

$cli = new SoapClient($api_url_v2);

$session_id = $cli->login($username, $apikey);


try{
    $result = $cli->catalogProductList($session_id);
    echo '<pre>';
    print_r($result, true);
    echo '</pre>';
} catch (Exception $e){
    print_r($e);
}
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.