EWS 推送通知到无事件类型
EWS Push Notification to no eventtype
我可以成功实现 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>
我的问题是,我怎样才能知道触发了哪种类型的事件?
当我查看通知时,我看不到有关此的任何信息。
当我想知道是哪个项目触发了这个时,我应该向 exchange-server 发起新的请求吗?我可以使用哪些信息(比如 id)?
关于这个问题
您可以在函数 "bussines logic" 中看到键入 "ExchangeNotification"。
此类型提供 eventItems,但我无法在 microsoft-lib 中找到此类型。我如何找出事件类型并检索触发此类事件的项目?
谢谢。
您发布的通知是通知节点中的 StatusEvent https://msdn.microsoft.com/en-us/library/office/aa565616(v=exchg.150).aspx . The event means there has been no activity in the Mailbox these work in conjunction with statusfrequency https://blogs.msdn.microsoft.com/webdav_101/2014/04/17/ews-push-what-is-the-statusfrequency-for/w. A Real Mailbox event would be returned as one of the EventType https://msdn.microsoft.com/EN-US/library/aa562955(v=exchg.150).aspx。
也就是说,这个通知就是我所期望的?
我问这个,因为我只看到项目的 ID 和事件的种类。
这意味着,我必须开始请求并请求这个项目的主题或类似的东西
<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>HwBleGNoYW5nZTIwMTAuaW50ZXJuLmV0ZWN0dXJlLmRlEAAAADFB9tC6gnBOvVuiJgN7tSANvjtW6eHTCA==</t:SubscriptionId>
<t:PreviousWatermark>AQAAAEfUnG14DdNIpJOCbGWMf81bgDspAAAAAAA=</t:PreviousWatermark>
<t:MoreEvents>false</t:MoreEvents>
<t:ModifiedEvent>
<t:Watermark>AQAAAEfUnG14DdNIpJOCbGWMf80LgTspAAAAAAE=</t:Watermark>
<t:TimeStamp>2016-09-21T06:34:54Z</t:TimeStamp>
<t:ItemId Id="AAMkADMyMGUyNzYzLWMwMDgtNDg3ZS04NmU5LWE3Yjk2NGVkMjU5YQBGAAAAAAAIe55QGP1eQLnln3/f75mHBwDodG9Iu/DFSoolXoHr7GuBAAAA5gbCAADodG9Iu/DFSoolXoHr7GuBAAApTv9PAAA=" ChangeKey="DwAAAA==" />
<t:ParentFolderId Id="AAMkADMyMGUyNzYzLWMwMDgtNDg3ZS04NmU5LWE3Yjk2NGVkMjU5YQAuAAAAAAAIe55QGP1eQLnln3/f75mHAQDodG9Iu/DFSoolXoHr7GuBAAAA5gbCAAA=" ChangeKey="AQAAAA==" />
</t:ModifiedEvent>
</m:Notification>
</m:SendNotificationResponseMessage>
</m:ResponseMessages>
</m:SendNotification>
</soap11:Body>
我可以成功实现 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>
我的问题是,我怎样才能知道触发了哪种类型的事件? 当我查看通知时,我看不到有关此的任何信息。 当我想知道是哪个项目触发了这个时,我应该向 exchange-server 发起新的请求吗?我可以使用哪些信息(比如 id)? 关于这个问题
您可以在函数 "bussines logic" 中看到键入 "ExchangeNotification"。 此类型提供 eventItems,但我无法在 microsoft-lib 中找到此类型。我如何找出事件类型并检索触发此类事件的项目?
谢谢。
您发布的通知是通知节点中的 StatusEvent https://msdn.microsoft.com/en-us/library/office/aa565616(v=exchg.150).aspx . The event means there has been no activity in the Mailbox these work in conjunction with statusfrequency https://blogs.msdn.microsoft.com/webdav_101/2014/04/17/ews-push-what-is-the-statusfrequency-for/w. A Real Mailbox event would be returned as one of the EventType https://msdn.microsoft.com/EN-US/library/aa562955(v=exchg.150).aspx。
也就是说,这个通知就是我所期望的? 我问这个,因为我只看到项目的 ID 和事件的种类。 这意味着,我必须开始请求并请求这个项目的主题或类似的东西
<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>HwBleGNoYW5nZTIwMTAuaW50ZXJuLmV0ZWN0dXJlLmRlEAAAADFB9tC6gnBOvVuiJgN7tSANvjtW6eHTCA==</t:SubscriptionId>
<t:PreviousWatermark>AQAAAEfUnG14DdNIpJOCbGWMf81bgDspAAAAAAA=</t:PreviousWatermark>
<t:MoreEvents>false</t:MoreEvents>
<t:ModifiedEvent>
<t:Watermark>AQAAAEfUnG14DdNIpJOCbGWMf80LgTspAAAAAAE=</t:Watermark>
<t:TimeStamp>2016-09-21T06:34:54Z</t:TimeStamp>
<t:ItemId Id="AAMkADMyMGUyNzYzLWMwMDgtNDg3ZS04NmU5LWE3Yjk2NGVkMjU5YQBGAAAAAAAIe55QGP1eQLnln3/f75mHBwDodG9Iu/DFSoolXoHr7GuBAAAA5gbCAADodG9Iu/DFSoolXoHr7GuBAAApTv9PAAA=" ChangeKey="DwAAAA==" />
<t:ParentFolderId Id="AAMkADMyMGUyNzYzLWMwMDgtNDg3ZS04NmU5LWE3Yjk2NGVkMjU5YQAuAAAAAAAIe55QGP1eQLnln3/f75mHAQDodG9Iu/DFSoolXoHr7GuBAAAA5gbCAAA=" ChangeKey="AQAAAA==" />
</t:ModifiedEvent>
</m:Notification>
</m:SendNotificationResponseMessage>
</m:ResponseMessages>
</m:SendNotification>
</soap11:Body>