gpt4 book ai didi

java - EWS 向无事件类型推送通知

转载 作者:行者123 更新时间:2023-12-01 09:29:39 25 4
gpt4 key购买 nike

我可以成功实现 Restful 推送通知。我从 Exchange-server 2010 sp1 收到此通知:

<?xml version="1.0" encoding="utf-8"?>
<soap11:Envelope xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
<soap11:Header>
<t:RequestServerVersion xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" Version="Exchange2010_SP1" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap11:Header>
<soap11:Body>
<m:SendNotification xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SendNotificationResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Notification>
<t:SubscriptionId>HwBleGNoYW5nZTIwMTAuaW50ZXJuLmV0ZWN0dXJlLmRlEAAAABNxdZtVvMZBo13hrhv+0RuAYyI4Bd/TCA==</t:SubscriptionId>
<t:PreviousWatermark>AQAAAEfUnG14DdNIpJOCbGWMf80VyhopAAAAAAA=</t:PreviousWatermark>
<t:MoreEvents>false</t:MoreEvents>
<t:StatusEvent>
<t:Watermark>AQAAAEfUnG14DdNIpJOCbGWMf81NyhopAAAAAAE=</t:Watermark>
</t:StatusEvent>
</m:Notification>
</m:SendNotificationResponseMessage>
</m:ResponseMessages>
</m:SendNotification>
</soap11:Body>
</soap11:Envelope>

我的问题是,我怎样才能知道触发了哪种类型的事件?当我查看通知时,我没有看到任何有关此的信息。当我想知道哪个项目触发了此问题时,我应该向交换服务器发起新请求吗?我可以使用哪些信息(例如 id)?关于这个问题

Exchange Web Services Java APi + RESTful Push Notifications Listener

您可以在函数“业务逻辑”中看到“ExchangeNotification”类型。这种类型提供了 eventItems,但我在 microsoft-lib 中找不到这种类型。我如何找出事件类型并检索触发此类事件的项目?

谢谢。

最佳答案

您发布的通知是 StatusEvent https://msdn.microsoft.com/en-us/library/office/aa565616(v=exchg.150).aspx 。该事件意味着邮箱中没有任何 Activity ,这些与状态频率 https://blogs.msdn.microsoft.com/webdav_101/2014/04/17/ews-push-what-is-the-statusfrequency-for/w 一起工作。 。真实邮箱事件将作为 EventType https://msdn.microsoft.com/EN-US/library/aa562955(v=exchg.150).aspx 之一返回。在通知节点内。

关于java - EWS 向无事件类型推送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39548048/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com