Microsoft EWS Push Notification Response Message

落花浮王杯 提交于 2019-12-07 05:32:22

问题


We are currently using push notifications from Microsoft Exchange Web Services to call our service whenever a new calendar event is created. This seems to be working fine at first. We are getting the verification message and responding with:

<?xml version="1.0"?>
  <s:Envelope xmlns:s= "http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
      <SendNotificationResult xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
        <SubscriptionStatus>OK</SubscriptionStatus>
      </SendNotificationResult>
    </s:Body>
  </s:Envelope>

Unfortunately exchange server just continues to send us the verification message at increasing intervals, as if our response is malformed. Does anyone know why Microsoft is not accepting our response message?


回答1:


I think your XML tag should be named <SendNotificationResultType> instead of <SendNotificationResult>.

Give that a try and let us know if you have any issues.



来源:https://stackoverflow.com/questions/19276678/microsoft-ews-push-notification-response-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!