Soap 使用ews订阅推送通知

Soap 使用ews订阅推送通知,soap,exchangewebservices,outlook-calendar,Soap,Exchangewebservices,Outlook Calendar,我尝试使用ews soap请求订阅日历事件的推送通知。但不幸的是,它失败了 错误:请求架构验证失败:找不到元素“Subscribe”的架构信息 我关注以下链接: 你能给我一个解决方案吗 我的EWS soap请求: ` 测试电子邮件地址 CreatedEvent 删除剂 修饰剂 1. 我自己的网站网址 ` 回应 `<?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmls

我尝试使用ews soap请求订阅日历事件的推送通知。但不幸的是,它失败了

错误:请求架构验证失败:找不到元素“Subscribe”的架构信息

我关注以下链接:

你能给我一个解决方案吗

我的EWS soap请求:

`


测试电子邮件地址
CreatedEvent
删除剂
修饰剂
1.
我自己的网站网址
`

回应

`<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <s:Fault>
            <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorSchemaValidation</faultcode>
            <faultstring xml:lang="en-US">The request failed schema validation: Could not find schema information for the element 'Subscribe'.</faultstring>
            <detail>
                <e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorSchemaValidation</e:ResponseCode>
                <e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">The request failed schema validation.</e:Message>
                <t:MessageXml xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
                    <t:LineNumber>17</t:LineNumber>
                    <t:LinePosition>6</t:LinePosition>
                    <t:Violation>Could not find schema information for the element 'Subscribe'.</t:Violation>
                </t:MessageXml>
            </detail>
        </s:Fault>
    </s:Body>
</s:Envelope>`
`
a:保价
请求架构验证失败:找不到元素“Subscribe”的架构信息。
误投
请求未通过架构验证。
17
6.
找不到元素“Subscribe”的架构信息。
`

您缺少
Subscribe
标记的命名空间。例如:

<m:Subscribe xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">

您缺少
Subscribe
标记的命名空间。例如:

<m:Subscribe xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">


欢迎使用Stack Overflow。请提供更多信息和代码,以便我们更好地诊断问题。谢谢。我通过添加soap请求和响应进行编辑。欢迎使用堆栈溢出。请提供更多信息以及您的代码,以便我们能够更好地诊断问题。谢谢。我通过添加soap请求和响应进行编辑。