PHP code example of php-soap-backports / ext-soap-engine
1. Go to this page and download the library: Download php-soap-backports/ext-soap-engine 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/ */
php-soap-backports / ext-soap-engine example snippets
use Soap\Engine\SimpleEngine;
use Soap\ExtSoapEngine\AbusedClient;
use Soap\ExtSoapEngine\Configuration\ClassMap\ClassMapCollection;
use Soap\ExtSoapEngine\Configuration\TypeConverter\TypeConverterCollection;
use Soap\ExtSoapEngine\ExtSoapDriver;
use Soap\ExtSoapEngine\ExtSoapOptions;
use Soap\ExtSoapEngine\Transport\ExtSoapClientTransport;
use Soap\ExtSoapEngine\Transport\TraceableTransport;
$engine = new SimpleEngine(
ExtSoapDriver::createFromClient(
$client = AbusedClient::createFromOptions(
ExtSoapOptions::defaults($wsdl, [
'soap_version' => SOAP_1_2,
])
->disableWsdlCache()
->withClassMap(new ClassMapCollection())
->withTypeMap(new TypeConverterCollection())
)
),
$transport = new TraceableTransport(
$client,
new ExtSoapClientTransport($client)
)
);