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'; // http and https are both supported
$config = new matejsvajger\NTLMSoap\Common\NTLMConfig([
'domain' => 'domain',
'username' => 'username',
'password' => 'password',
// optionally pass curl options to be used
// for example, to disable SSL verification when using self-signed certs
'curlOptions' => array(
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false
)
]);
$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 [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.