【发布时间】:2019-06-25 21:22:30
【问题描述】:
我想从 EWS API 检索附件。不幸的是,GetAttachment 默认不返回附件的修改日期。
我的 EWS API SOAP 请求:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013_SP1" />
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:PrimarySmtpAddress>%1%</t:PrimarySmtpAddress>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<m:GetAttachment>
<m:AttachmentShape />
<m:AttachmentIds>
<t:AttachmentId Id="%2%" />
</m:AttachmentIds>
</m:GetAttachment>
</soap:Body>
</soap:Envelope>
是否可以从 EWS API 获取修改日期?我该怎么做?谢谢。
【问题讨论】: