Microsoft EWS推送通知响应消息

时间:2013-10-09 15:46:17

标签: xml exchangewebservices

我们目前正在使用Microsoft Exchange Web Services的推送通知,以便在创建新的日历事件时调用我们的服务。这开始似乎工作得很好。我们收到验证邮件并回复:

<?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>

不幸的是,Exchange服务器会继续以不断增加的间隔向我们发送验证消息,就像我们的响应格式错误一样。有谁知道为什么微软不接受我们的回复消息?

1 个答案:

答案 0 :(得分:4)

我认为您的XML标记应该命名为<SendNotificationResultType>,而不是<SendNotificationResult>

尝试一下,如果您有任何问题,请告诉我们。