Microsoft EWS推送通知响应消息 [英] Microsoft EWS Push Notification Response Message

查看:156
本文介绍了Microsoft EWS推送通知响应消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当创建新的日历事件时,我们当前都在使用来自Microsoft Exchange Web服务的推送通知来调用我们的服务.起初这似乎工作良好.我们收到验证消息并回复:

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?

推荐答案

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

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.

这篇关于Microsoft EWS推送通知响应消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆