4

Among all the Exchange Web Services Operations I'm looking for the simplest one I can initially use to check if my connectivity to the EWS endpoint works.
The low-level code I use to build and execute SOAP calls expects valid results so whatever operation I use should not return with an error message.

I have considered several but don't find them satisfactory:

  • GetServerTimeZones is only supported from Exchange 2010, and I need 2007+

  • ResolveNames needs a (partial) user name, but I want it do to be user independent. Also, it could return errors (not match) or maybe hundreds of matches (match with 'e').

  • GetUserConfiguration works for the currently logged in user, but is only supported from 2010.

Any other ideas?

4

1 回答 1

2

我决定使用 ResolveNames - 进一步的处理无论如何都需要用户。

这让我有机会同时进行多项检查:一般连接、用户存在、交换服务器版本等。

2013 年 8 月 2 日编辑

我已切换到使用FindFolder,这进一步简化了我的代码。
这会将检查“用户存在”更改为检查“默认日历文件夹存在”,这是应用程序假定的。

代码中还有另一个假设,即W. Europe Standard Time存在时区,但正如我最初的问题所述,我只能验证 Exchange 2010 及更高版本。

于 2013-06-13T07:43:46.450 回答