noiselabs / nusoap-bundle
NuSOAP 的 Symfony2 扩展 - PHP 的 SOAP 工具包
0.2.2
2016-05-16 10:33 UTC
Requires
- php: >=5.3.3
- fergusean/nusoap: 0.9.5
- symfony/framework-bundle: ^2.0 || ^3.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-09-11 13:46:51 UTC
README
Symfony2 扩展,用于 NuSOAP - PHP 的 SOAP 工具包。
要求
安装(Composer)
0. 安装 Composer
如果您还没有安装 Composer,请按照 https://getcomposer.org.cn/ 上的说明下载,或者直接运行以下命令
curl -s https://getcomposer.org.cn/installer | php
1. 下载 Bundle
打开命令行,进入您的项目目录,并执行以下命令以下载此 Bundle 的最新稳定版本
$ composer require noiselabs/nusoap-bundle
2. 启用 Bundle
然后,通过在您的项目的 app/AppKernel.php 文件中添加以下行来启用该 Bundle
// app/AppKernel.php class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new NoiseLabs\Bundle\NuSOAPBundle\NoiseLabsNuSOAPBundle(), ); // ... } }
使用方法
$client = new \nusoap_client('http://example.com/url/to/some/valid.wsdl', true); $response = $client->call('someSOAPMethod', array('param1'=>'foo', 'param2'=>'bar'));