0

I am using https://github.com/jamesiarmes/php-ews library to connect to our Microsft Exchange Server 2010 SP3 but I am getting this error: Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in

see error message here

I am using the example provided under: /examples/message/create.php

and the error is triggered on this line: index.php

$response = $client->CreateItem($request);

Client.php

$response = $this->soap->{$operation}($request);

When I try to access the wsdl file from the browser it works fine and after authentication, I can see all the options under Services.wsdl .

What do you think the problem is? Is there some settings that I need to enable on Microsoft Exchange in order to use the SOAP services?

hassan
  • 7,812
  • 2
  • 25
  • 36
  • 1
    the error is fairly self-explanatory. Your PHP script hasn't done whatever it needs to do to authenticate itself for access to the features of the SOAP server. As I don't know what you're expected to do to authenticate against the particular SOAP server in question I don't think there's much else anybody can do to help you other than to find out what the authentication requirements are. – GordonM Jul 11 '17 at 09:04
  • Thanks for your reply. Yes, it could also be that PHP script hasn't done all it needs to finalize the authentication but as mentioned, I am using the PHP-EWS library and I wonder how others managed to make it work. – Danilo D'Auria Jul 11 '17 at 10:15

0 Answers0