PHP code example of webmasterskaya / cccb-soap-client
1. Go to this page and download the library: Download webmasterskaya/cccb-soap-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webmasterskaya / cccb-soap-client example snippets
// Получение экземпляра клиента
/** @var \Webmasterskaya\Soap\CCCB\CccbClient $client */
$client = \Webmasterskaya\Soap\CCCB\CccbClientFactory::create([
'login' => 'WebServiceLogin', // Ваш логин доступа к ЕИС «Спецсвязь». Выдается сотрниками ИТ блока ФГУП ГЦСС
'password' => 'WebServicePassword', // Ваш пароль доступа к ЕИС «Спецсвязь». Выдается сотрниками ИТ блока ФГУП ГЦСС
'contract_guid' => '00000000-0000-0000-0000-000000000000', // Ваш идентификатор договора контрагента. Выдается сотрниками ИТ блока ФГУП ГЦСС
'service_guid' => '00000000-0000-0000-0000-000000000000', // Ваш идентификатор услуги (по заключенному договору). Выдается сотрниками ИТ блока ФГУП ГЦСС
]);
// Вызвать метод вебсервиса
/** @var \Webmasterskaya\Soap\CCCB\Type\ProbResponse $probResponse */
$probResponse = $client->probe();
echo $probResponse->getReturn(); // Выведет "Пробный вызов веб-сервиса"