uhi67/yii2-soap-server
最新稳定版本:1.5
Composer 安装命令:
composer require uhi67/yii2-soap-server
包简介
Yii2 soap wsdl web services
README 文档
README
Version 1.5
Description
WebService encapsulates SoapServer and provides a WSDL-based web service. Adaptation of Yii1 Web Services
Based on work of Qiang Xue qiang.xue@gmail.com and Andrey Borodulin
Change log is below
Installation
The preferred way to install this extension is through composer.
To install, either run
$ php composer.phar require uhi67/yii2-soap-server "^1.5"
or add
"uhi67/yii2-soap-server": "^1.5"
to the require section of your composer.json file.
Usage
namespace app\controllers; class SiteController extends \yii\web\Controller { public function actions() { return [ 'soap' => [ 'class' => 'conquer\services\WebServiceAction', 'classMap' => [ 'MyClass' => 'app\controllers\MyClass' ], ], ]; } /** * @param \app\controllers\MyClass $myClass * @return string * @soap */ public function soapTest($myClass) { return get_class($myClass); } } /** * Class MyClass * @soap */ class MyClass { /** * @var string * @soap */ public $name; }
Testing
- Before testing, run once
composer installfrom repository root. - Run
php tests/app/yii serveif you're going to run acceptance tests. - Run
codecept runfrom repository root.
License
uhi67/yii2-soap-server is released under the BSD License. See the bundled LICENSE.md for details.
Change log
1.5
- corrections for codeception functional testing and some test examples
- online API documentation with
?docquery
统计信息
- 总下载量: 76
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2021-06-11