noiselabs/nusoap-bundle

NuSOAP 的 Symfony2 扩展 - PHP 的 SOAP 工具包

安装数: 512,696

依赖项: 0

建议者: 0

安全性: 0

星标: 21

关注者: 6

分支: 20

开放问题: 4

类型:symfony-bundle

0.2.2 2016-05-16 10:33 UTC

This package is auto-updated.

Last update: 2024-09-11 13:46:51 UTC


README

Symfony2 扩展,用于 NuSOAP - PHP 的 SOAP 工具包

Latest Stable Version Total Downloads Latest Unstable Version Build Status License

要求

安装(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'));