Symfony2 bundle for NuSOAP - SOAP Toolkit for PHP.
If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:
curl -s http://getcomposer.org/installer | php
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require noiselabs/nusoap-bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:
// 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'));