You are here

6 December 2016

Doing private Soap reqests requires some kind of authentication. One of the most common ways is to use NTML authentication. PHP soap does not support this out of the box it. You can use this tftdias NTLMSoap library which extends the soap library with neccessary authentification to do the requests.

Source code viewer
  1. require_once dirname(__FILE__) . '/vendor/autoload.php';
  2.  
  3. $SOAP = new \NTLMSoap\Client('WSDL_URL', array(
  4. 'ntlm_username' => 'USERNAME',
  5. 'ntlm_password' => 'PASSWORD',
  6. ));
  7. $Response = $SOAP->__getTypes();
  8. var_dump($Response);
Programming Language: PHP