Exchange Web Services Notifications
I need to write an Exchange integration piece for my application. Whenever a contact, task, appointment, etc. gets created by ANY Exchange account on the server, I want my application to 开发者_如何学JAVAreceive a notification so that it can create the equivalent object in the application.
From looking at the EWS Managed API as well as the lower-level web service API, it looks like you can only subscribe to an entire user's mailbox or a sub-folder in that mailbox. Is there any way for my application to subscribe to simply any and all mailboxes on the server?
Thank you, Tedderz
No, Exchange does not support "all mailboxes" notifications. And you really do not want to subscribe to all notifications - imagine the number of notifications you will receive from 1000+ mailboxes Exchange server. In case of Public Folders, you cannot subsribe to the store-wide notoifcations; just the way it is architected. ON a more general note, do not use events or notifcations for synchonization - the notifications can and are dropped under heavy loads. There is are offcially supported API's for that (Active Sync, ICS). At best, notifcations can be used as a hint that your code must perform sync sooner rather than later.
精彩评论