无法从EWS服务器检索附件

时间:2018-11-19 09:11:26

标签: office-js outlook-web-addins

我们具有Outlook加载项(OfficeJS)使用的文件附件同步功能。使用[3]和[4]

获取EWS令牌和URL。

我们使用此处详细介绍的EWS SOAP API调用获取附件[2]。但是,我们注意到其中一些调用随机失败,并且将在后续重试中成功。我认为这与已签名的电子邮件无关[1]。 EWS SOAP API调用是否有速率限制?

编辑:

直接SOAP请求返回到EWS端点的响应:

                <m:GetAttachmentResponseMessage ResponseClass="Error">
                <m:MessageText>The specified attachment Id is invalid.</m:MessageText>
                <m:ResponseCode>ErrorInvalidAttachmentId</m:ResponseCode>
                <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
                <m:Attachments/>
            </m:GetAttachmentResponseMessage>

参考

[1] EWS: Retrieving attachments from signed emails

[2] https://docs.microsoft.com/en-us/outlook/add-ins/get-attachments-of-an-outlook-item#use-ews-to-get-the-attachments

[3] https://docs.microsoft.com/en-us/office/dev/add-ins/reference/objectmodel/requirement-set-1.7/office.context.mailbox#ewsurl-string

[4] https://docs.microsoft.com/en-us/office/dev/add-ins/reference/objectmodel/requirement-set-1.7/office.context.mailbox#getcallbacktokenasyncoptions-callback

0 个答案:

没有答案
相关问题