/
dimamir
/
Wsdl_PackageGenerator
Обзор
Документация
Войти
/
dimamir
/
Wsdl_PackageGenerator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/resources/generated/ValidActonNoneTutorial.php
93 строки
3 KB
Mikaël DELSOL
issue #243 - fix unit test resources due to getNamespace fix
29 мар 2021, 15:51
29 мар 2021, 15:51
a8d0746
Код
Авторство
О чём код?
<?php /** * This file aims to show you how to use this generated package. * In addition, the goal is to show which methods are available and the first needed parameter(s) * You have to use an associative array such as: * - the key must be a constant beginning with WSDL_ from AbstractSoapClientBase class (each generated ServiceType class extends this class) * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option) * $options = [ * WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => '__WSDL_URL__', * WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true, * WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login', * WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password', * ]; * etc... */ require_once __DIR__ . '/vendor/autoload.php'; /** * Minimal options */ $options = [ WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => '__WSDL_URL__', WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ApiClassMap::get(), ]; /** * Samples for Service ServiceType */ $service = new \ServiceType\ApiService($options); $service->setSoapHeaderClusterHeader(new \StructType\ApiClusterHeader()); $service->setSoapHeaderSessionHeader(new \StructType\ApiSessionHeader()); /** * Sample call for login operation/method */ if ($service->login(new \StructType\ApiLogin()) !== false) { print_r($service->getResult()); } else { print_r($service->getLastError()); } /** * Sample call for sendEmail operation/method */ if ($service->sendEmail(new \StructType\ApiSendEmail()) !== false) { print_r($service->getResult()); } else { print_r($service->getLastError()); } /** * Sample call for _list operation/method */ if ($service->_list(new \StructType\ApiList()) !== false) { print_r($service->getResult()); } else { print_r($service->getLastError()); } /** * Sample call for uploadList operation/method */ if ($service->uploadList(new \StructType\ApiUploadList()) !== false) { print_r($service->getResult()); } else { print_r($service->getLastError()); } /** * Sample call for getUploadResult operation/method */ if ($service->getUploadResult(new \StructType\ApiGetUploadResultRequest()) !== false) { print_r($service->getResult()); } else { print_r($service->getLastError()); } /** * Sample call for downloadList operation/method */ if ($service->downloadList(new \StructType\ApiDownloadList()) !== false) { print_r($service->getResult()); } else { print_r($service->getLastError()); } /** * Sample call for messageReport operation/method */ if ($service->messageReport(new \StructType\ApiMessageReport()) !== false) { print_r($service->getResult()); } else { print_r($service->getLastError()); } /** * Sample call for deleteList operation/method */ if ($service->deleteList(new \StructType\ApiDeleteList()) !== false) { print_r($service->getResult()); } else { print_r($service->getLastError()); }