PHP-EWS “Soap client returned status of 404”

十年热恋 提交于 2019-12-06 14:06:40

It looks like your trying to use the new REST endpoint for Office365

'outlook.office365.com/EWS/OData/Me/Inbox/Messages'

But your trying to make and EWS SOAP Request, the endpoint you should be using for EWS SOAP is

https://outlook.office365.com/EWS/Exchange.asmx

You might want to consider using the new REST interface as an alternative to EWS/SOAP but you then need to use a REST library.ouauth etc as per https://dev.outlook.com/restapi.

I'd suggest you use a newer version of this library that's maintained much more and has more features (In this case, it support OAuth logins for Office 365), garethp/php-ews. When using it, you can either use the endpoint provided by Glen Scales, or just use outlook.office365.com.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!