viktorprogger / async-soap-guzzle
An asynchronous SOAP client build on top of Guzzle.
v0.2.5
2019-02-20 19:44 UTC
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ^6.1
- meng-tian/php-async-soap: ~1.0
- meng-tian/soap-http-binding: ~0.2.0
Requires (Dev)
- phpunit/phpunit: ~4.8
README
An asynchronous SOAP client build on top of Guzzle. The SoapClient
implements meng-tian/php-async-soap.
Requirement
PHP 5.5 --enablelibxml --enable-soap
Install
composer require meng-tian/async-soap-guzzle
Usage
use GuzzleHttp\Client; use Meng\AsyncSoap\Guzzle\Factory; $factory = new Factory(); $client = $factory->create(new Client(), 'http://www.webservicex.net/Statistics.asmx?WSDL'); // async call $promise = $client->callAsync('GetStatistics', [['X' => [1,2,3]]]); $result = $promise->wait(); // sync call $result = $client->call('GetStatistics', [['X' => [1,2,3]]]); // magic method $promise = $client->GetStatistics(['X' => [1,2,3]]); $result = $promise->wait();
License
This library is released under MIT license.