anbis / ntml-soap-client
SOAP Client PHP with NTLM Authentication
dev-master
2019-06-21 12:43 UTC
Requires
- php: >=5.3.0
- ext-curl: *
Requires (Dev)
This package is not auto-updated.
Last update: 2024-10-05 14:23:55 UTC
README
define('USERPWD', 'domain\username:password');
stream_wrapper_unregister("https");
stream_wrapper_register("https", Anbis\NTLMStream::class);
$params = [
'stream_context' => stream_context_create([
'ssl' => [
'ciphers'=>'RC4-SHA',
'verify_peer'=> false,
'verify_peer_name'=> false,
'allow_self_signed'=> true,
]
]),
'cache_wsdl' => WSDL_CACHE_NONE,
'soap_version' => SOAP_1_1,
'trace' => 1,
'connection_timeout' => 180,
'features' => SOAP_SINGLE_ELEMENT_ARRAYS
];
$client = new Anbis\NTLMSoapClient("https://hostname.com/webservice", $params);
$client->__getFunctions();
$retVal = $client->ReadMultiple(...