PHP code example of kiann / nusoap
1. Go to this page and download the library: Download kiann/nusoap 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/ */
kiann / nusoap example snippets
php
use Kiann\NuSoap\NusoapClient;
$client = new NusoapClient("https://yourserver.org?wsdl", true);
$client->setNameSpaces(array(
'soap' => 'http://schemas.xmlsoap.org/soap/envelope/',
'xsd' => 'http://www.w3.org/2001/XMLSchema',
'xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'SOAP-ENC' => 'http://schemas.xmlsoap.org/soap/encoding/'
));
$result = $client->call('operation', $requestBody);