使用 ExchangeService 发送自定义 SOAP

Send custom SOAP with ExchangeService

我想使用 ExchangeService 发送自定义 SOAP 消息。我不确定这是否可能。我所看到的只是一些 OnSerializeCustomSoapHeaders 方法,该方法应该向每个请求添加 属性 。但我想制作整个消息。这可能吗?

EWS Managed API 在 https://github.com/OfficeDev/ews-managed-api you can see the Managed API just uses httpwebRequest under the covers https://github.com/OfficeDev/ews-managed-api/blob/76708b8124cd273b56269334f0a908b2eb0aca6c/Core/EwsHttpWebRequest.cs 上开源。然而,通常最简单的事情就是自己使用 httpwebrequest 并从您已经使用的 ExchangeService Class 中获取 URL 等(或者如果您想使其异步,则使用 httpclient)。

干杯 格伦