PHP WDSL/Soap Client with NTLM Authentication for Microsoft Dynamics NAT Server.
Via Composer
$ composer require matejsvajger/ntlm-soap-client
$url = 'URL_TO_WEBSERVICE_WSDL';
$config = new matejsvajger\NTLMSoap\Common\NTLMConfig([
'domain' => 'domain',
'username' => 'username',
'password' => 'password'
]);
$client = new matejsvajger\NTLMSoap\Client($url, $config);
$response = $client->ReadMultiple(['filter'=>[], 'setSize'=>1]);
foreach ($response->ReadMultiple_Result->CRMContactlist as $entity) {
print_r($entity);
}
NOTE: NTLM Authentication string looks like <domain>/<username>:<password>
. All three config items are required.
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email hello@matejsvajger.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.