我们目前正在使用来自 Microsoft Exchange Web 服务的推送通知,以便在创建新日历事件时调用我们的服务。起初这似乎工作正常。我们正在收到验证消息并回复:
<?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>
不幸的是,交换服务器只是继续以越来越长的间隔向我们发送验证消息,就好像我们的响应格式不正确一样。有谁知道为什么 Microsoft 不接受我们的回复消息?
最佳答案
我认为您的 XML 标记应命名为 <SendNotificationResultType>
而不是 <SendNotificationResult>
.
试试看,如果您有任何问题,请告诉我们。
关于xml - Microsoft EWS 推送通知响应消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19276678/