PHP code example of vaclavvanik / soap-wsdl-http

1. Go to this page and download the library: Download vaclavvanik/soap-wsdl-http 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/ */

    

vaclavvanik / soap-wsdl-http example snippets




declare(strict_types=1);

use GuzzleHttp;
use VaclavVanik\Soap\Wsdl;

$httpClient = new GuzzleHttp\Client();
$requestFactory = new GuzzleHttp\Psr7\HttpFactory();
$url = 'https://example.com/my.wsdl';

$wsdl = (new Wsdl\HttpClientProvider($httpClient, $requestFactory, $url))->provide();