Почему возникает ошибка при подключению к сервису?

Я пытаюсь подключиться по api к сервису: https://fedresurs.ru/. Для работы использую SDK: https://github.com/Smolevich/fedresurs-sdk.

При подключении возникает ошибка:

Uncaught SoapFault: looks like we got no XML document in /phpro/soap-client/src/Phpro/SoapClient/Soap/Driver/ExtSoap/ExtSoapDecoder.php:33

Пожалуйста, подскажите, как исправить ошибку?

Вот мой код:

require_once __DIR__ . '/vendor/autoload.php';

use Fedresurs\WebService\Type\GetDebtorsByLastPublicationPeriod;
use Fedresurs\WebService\Type\GetTradeMessages;
use Http\Adapter\Guzzle6\Client;
use Phpro\SoapClient\Soap\Handler\HttPlugHandle;
use Fedresurs\WebService\WebServiceClientFactory;
use \Fedresurs\WebService\Type\GetTradeMessageContent;

$config = json_decode(file_get_contents(__DIR__ . '/config/credentials.json'), true);

if (empty($config)) {
    throw new Exception('Empty config');
}

$handler = HttPlugHandle::createForClient(
    Client::createWithConfig([
        'headers' => ['User-Agent' => 'testing/1.0'],
        'auth' => [$config['username'], $config['password'], 'digest']
    ])
);


$client = WebServiceClientFactory::factory(__DIR__ . '/schema/schema.wsdl', $handler);
$startDate = new DateTime('-10 day');
$endDate = new DateTime('now');
// Fatal Error 
$response = $client->getDebtorsByLastPublicationPeriod(new GetDebtorsByLastPublicationPeriod($startDate,$endDate));

Ответы (0 шт):