PHP code example of tbpixel / soap-client
1. Go to this page and download the library: Download tbpixel/soap-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tbpixel / soap-client example snippets
use TBPixel\SoapClient\ClientFactory;
// @var \Psr\Http\Client\ClientInterface $http
$client = ClientFactory::new($http, 'http://example.com/service.wsdl');
// $response is a \Psr\Http\Message\StreamInterface
$response = $client->call('MyAction', [
'foo' => 'bar',
]);