6 December 2016

Usually when you have errors with soap it is because private Soap requests require some kind of authentication. One of the most common ways is to use NTML authentication, because Microsoft. PHP soap does not support this out of the box it. You can use this tftdias NTLMSoap library which extends the soap library with necessary authentication 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