使用 EWS 模拟(不是托管 API)

Impersonation using EWS (not the Managed API)

是否可以在 EWS 中使用模拟而不使用托管 API?

我通读了 this 页,但似乎没有帮助。

我希望能够通过发送 SOAP 请求在用户的日历上创建事件,而不是使用托管 API。

当然,使用 Impersonation 只涉及设置 Impersonation SOAP header 例如

<soap:Header>
  <t:ExchangeImpersonation>
    <t:ConnectingSID>
      <t:PrimarySmtpAddress>alisa@contoso.com</t: PrimarySmtpAddress>
    </t:ConnectingSID>
  </t:ExchangeImpersonation>
</soap:Header>

我建议 https://msdn.microsoft.com/en-us/library/office/dn722378(v=exchg.150).aspx 是一个更好的参考

干杯 格伦