PHP code example of nyx-solutions / yii2-http-soap-client
1. Go to this page and download the library: Download nyx-solutions/yii2-http-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/ */
nyx-solutions / yii2-http-soap-client example snippets
'components' => [
'soapApi' => [
'class' => 'nyx\http\soap\HttpSoapClient',
'endpoint' => 'http://ws.exemple.com/WebService.asmx?wsdl',
'options' => [
'cache_wsdl' => WSDL_CACHE_NONE
]
]
]
use nyx\http\soap\HttpSoapClient;
$client = new HttpSoapClient(['endpoint' => 'http://ws.exemple.com/WebService.asmx?wsdl']);
echo $client->getMessage('Lorem ipsum...');