Ios EWS GetStreamingEvents。仅通过超时接收响应

Ios EWS GetStreamingEvents。仅通过超时接收响应,ios,xml,office365,exchangewebservices,rapidxml,Ios,Xml,Office365,Exchangewebservices,Rapidxml,在我的iOS应用程序中,我试图从以下EWS获取流媒体事件。因此,首先我订阅通知,接收订阅id,然后执行GetStreamingEvents请求。订阅过程成功,但无法获取流式事件。我只在超时时收到响应。是的,它确实包含所有通知,因此没有问题,但我希望在事件发生后收到响应,而不是在请求时间结束时 所以我启动并检查了Mac Mail应用程序的流量。我可以看到,它在发出GetStreamingEvents请求后立即收到一个响应,然后在每次事件按预期发生时成功接收响应。所以,我让我的XML看起来和Mac

在我的iOS应用程序中,我试图从以下
EWS
获取流媒体事件。因此,首先我订阅通知,接收订阅id,然后执行
GetStreamingEvents
请求。订阅过程成功,但无法获取流式事件。我只在超时时收到响应。是的,它确实包含所有通知,因此没有问题,但我希望在事件发生后收到响应,而不是在请求时间结束时

所以我启动并检查了Mac Mail应用程序的流量。我可以看到,它在发出
GetStreamingEvents
请求后立即收到一个响应,然后在每次事件按预期发生时成功接收响应。所以,我让我的XML看起来和Mac Mail应用程序一模一样,但仍然不走运

这是我的
Subscribe
xml:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
  <t:RequestedServerVersion Version="Exchange2010_SP2" />
</soap:Header>
<soap:Body>
  <m:Subscribe xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
     <m:StreamingSubscriptionRequest SubscribeToAllFolders="true">
        <t:EventTypes>
           <t:EventType>CopiedEvent</t:EventType>
           <t:EventType>CreatedEvent</t:EventType>
           <t:EventType>DeletedEvent</t:EventType>
           <t:EventType>ModifiedEvent</t:EventType>
           <t:EventType>MovedEvent</t:EventType>
           <t:EventType>NewMailEvent</t:EventType>
           <t:EventType>FreeBusyChangedEvent</t:EventType>
        </t:EventTypes>
     </m:StreamingSubscriptionRequest>
  </m:Subscribe>
  </soap:Body>
</soap:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
  <t:RequestServerVersion Version="Exchange2010_SP2" />
</soap:Header>
<soap:Body>
  <m:GetStreamingEvents xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
     <m:SubscriptionIds>
        <t:SubscriptionId>JwBkYjVwcjA2bWIxNDY0LmV1cnByZDA2LnByb2Qub3V0bG9vay5jb20QAAAAF9r7tBXj+U+UapGUZ4XFytKbA+ad1dQIEAAAAMiCIP/mQqJOjzx9Aog45Fk=</t:SubscriptionId>
     </m:SubscriptionIds>
     <m:ConnectionTimeout>30</m:ConnectionTimeout>
  </m:GetStreamingEvents>
  </soap:Body>
  </soap:Envelope>
有什么想法吗,伙计们

更新:

以下是我构建订阅的方式:

bcstring SubscribeRequestMessage::buildSoapRequest() const
{
xml_document<> doc;
xml_node<>* decl = doc.allocate_node(node_declaration);
decl->append_attribute(doc.allocate_attribute("version", "1.0"));
decl->append_attribute(doc.allocate_attribute("encoding", "utf-8"));
doc.append_node(decl);

// Envelope
xml_node<>* envelope = doc.allocate_node(node_element, "soap:Envelope");
envelope->append_attribute(doc.allocate_attribute("xmlns:soap", "http://schemas.xmlsoap.org/soap/envelope/"));
envelope->append_attribute(doc.allocate_attribute("xmlns:t", "http://schemas.microsoft.com/exchange/services/2006/types"));

doc.append_node(envelope);
{
    // Header
    xml_node<>* header = doc.allocate_node(node_element, "soap:Header");
    {
        xml_node<>* reqServerVersion = doc.allocate_node(node_element, "t:RequestedServerVersion");
        xml_attribute<>* serverVersionAttribute = doc.allocate_attribute("Version", m_requestedServerVersion.c_str());
        reqServerVersion->append_attribute(serverVersionAttribute);
        header->append_node(reqServerVersion);
    }
    envelope->append_node(header);

    // Body
    xml_node<>* body = doc.allocate_node(node_element, "soap:Body");
    {
        xml_node<>* subscribe = doc.allocate_node(node_element, "m:Subscribe");
        {
            subscribe->append_attribute(doc.allocate_attribute("xmlns:m", "http://schemas.microsoft.com/exchange/services/2006/messages"));

            xml_node<>* streamingSubscriptionRequest = doc.allocate_node(node_element, "m:StreamingSubscriptionRequest");
            {

                if (m_folderIds.size() > 0)
                {
                    xml_node<>* folderIds = doc.allocate_node(node_element, "t:FolderIds");
                    {
                        for (const bcstring& folderId : m_folderIds)
                        {
                            xml_node<>* folderIdNode = doc.allocate_node(node_element, "t:FolderId");
                            folderIdNode->append_attribute(doc.allocate_attribute("Id", folderId.c_str()));
                            folderIds->append_node(folderIdNode);
                        }
                    }
                    streamingSubscriptionRequest->append_node(folderIds);
                }
                else
                {
                    xml_attribute<>* subscribeToAll = doc.allocate_attribute("SubscribeToAllFolders", "true");
                    streamingSubscriptionRequest->append_attribute(subscribeToAll);
                }
                xml_node<>* eventTypes = doc.allocate_node(node_element, "t:EventTypes");
                {
                    for (const bcstring& eventType : m_eventTypes)
                    {
                        xml_node<>* eventTypeNode      = doc.allocate_node(node_element, "t:EventType");
                        xml_node<>* eventTypeValueNode = doc.allocate_node(node_data, "", eventType.c_str());
                        eventTypeNode->append_node(eventTypeValueNode);
                        eventTypes->append_node(eventTypeNode);
                    }
                }
                streamingSubscriptionRequest->append_node(eventTypes);
            }
            subscribe->append_node(streamingSubscriptionRequest);
        }

        body->append_node(subscribe);
    }
    envelope->append_node(body);
}

bcstring retVal;
print(std::back_inserter(retVal), doc, print_no_indenting);

return retVal;
}
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
  <t:RequestServerVersion Version="Exchange2010_SP2" />
</soap:Header>
<soap:Body>
  <m:Subscribe xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
     <m:StreamingSubscriptionRequest SubscribeToAllFolders="true">
        <t:EventTypes>
           <t:EventType>CopiedEvent</t:EventType>
           <t:EventType>CreatedEvent</t:EventType>
           <t:EventType>DeletedEvent</t:EventType>
           <t:EventType>ModifiedEvent</t:EventType>
           <t:EventType>MovedEvent</t:EventType>
           <t:EventType>NewMailEvent</t:EventType>
           <t:EventType>FreeBusyChangedEvent</t:EventType>
        </t:EventTypes>
     </m:StreamingSubscriptionRequest>
  </m:Subscribe>
  </soap:Body>
  </soap:Envelope>
bcstring SubscribeRequestMessage::buildSoapRequest()const
{
xml_文档文档;
xml\u node*decl=doc.allocate\u node(node\u声明);
decl->append_属性(文档分配_属性(“版本”、“1.0”);
decl->append_属性(文档分配_属性(“编码”、“utf-8”);
单据追加节点(decl);
//封套
xml_node*envelope=doc.allocate_节点(node_元素,“soap:envelope”);
信封->附加属性(文档分配属性(“xmlns:soap”)http://schemas.xmlsoap.org/soap/envelope/"));
信封->附加属性(文档分配属性(“xmlns:t”)http://schemas.microsoft.com/exchange/services/2006/types"));
单据追加节点(信封);
{
//标题
xml_node*header=doc.allocate_节点(node_元素,“soap:header”);
{
xml_节点*reqServerVersion=doc.allocate_节点(节点元素,“t:RequestedServerVersion”);
xml_属性*serverVersionAttribute=doc.allocate_属性(“Version”,m_requestedServerVersion.c_str());
reqServerVersion->append_属性(serverVersionAttribute);
标题->附加节点(reqServerVersion);
}
信封->附加节点(标题);
//身体
xml_node*body=doc.allocate_节点(node_元素,“soap:body”);
{
xml_node*subscribe=doc.allocate_node(节点_元素,“m:subscribe”);
{
订阅->附加属性(文档分配属性(“xmlns:m”)http://schemas.microsoft.com/exchange/services/2006/messages"));
xml_node*streamingSubscriptionRequest=doc.allocate_节点(node_元素,“m:streamingSubscriptionRequest”);
{
如果(m_folderIds.size()>0)
{
xml_node*folderIds=doc.allocate_节点(node_元素,“t:folderIds”);
{
for(常量bcstring和folderId:m_folderId)
{
xml_node*FolderId=doc.allocate_node(node_元素,“t:FolderId”);
folderIdNode->append_属性(doc.allocate_属性(“Id”,folderId.c_str());
folderIds->append_节点(folderIdNode);
}
}
streamingSubscriptionRequest->append_节点(FolderId);
}
其他的
{
xml_属性*subscribeToAll=doc.allocate_属性(“SubscribeToAllFolders”,“true”);
streamingSubscriptionRequest->append_属性(subscribeToAll);
}
xml_node*eventTypes=doc.allocate_节点(node_元素,“t:eventTypes”);
{
for(常量bcstring和事件类型:m_eventTypes)
{
xml_node*eventTypeNode=doc.allocate_节点(node_元素,“t:EventType”);
xml_node*eventTypeValueNode=doc.allocate_node(node_data,“,eventType.c_str());
eventTypeNode->append_节点(eventTypeValueNode);
eventTypes->append_节点(eventTypeNode);
}
}
streamingSubscriptionRequest->append_节点(事件类型);
}
订阅->附加节点(streamingSubscriptionRequest);
}
body->append_节点(订阅);
}
信封->附加节点(正文);
}
b字符串检索;
打印(标准:背面插入器(retVal)、文档、打印、无缩进);
返回返回;
}
这就是我构建get streaming xml的方式:

bcstring GetStreamingEventsRequest::buildSoapRequest() const
{
xml_document<> doc;
xml_node<>* decl = doc.allocate_node(node_declaration);
decl->append_attribute(doc.allocate_attribute("version", "1.0"));
decl->append_attribute(doc.allocate_attribute("encoding", "utf-8"));
doc.append_node(decl);

// Envelope
xml_node<>* envelope = doc.allocate_node(node_element, "soap:Envelope");
envelope->append_attribute(doc.allocate_attribute("xmlns:soap", "http://schemas.xmlsoap.org/soap/envelope/"));
envelope->append_attribute(doc.allocate_attribute("xmlns:t", "http://schemas.microsoft.com/exchange/services/2006/types"));

doc.append_node(envelope);
{
    // Header
    xml_node<>* header = doc.allocate_node(node_element, "soap:Header");
    {
        xml_node<>* reqServerVersion = doc.allocate_node(node_element, "t:RequestServerVersion");
        xml_attribute<>* serverVersionAttribute = doc.allocate_attribute("Version", m_requestedServerVersion.c_str());
        reqServerVersion->append_attribute(serverVersionAttribute);
        header->append_node(reqServerVersion);
    }
    envelope->append_node(header);

    // Body
    xml_node<>* body = doc.allocate_node(node_element, "soap:Body");
    {
        xml_node<>* getStreamingEvents = doc.allocate_node(node_element, "m:GetStreamingEvents");
        {
            getStreamingEvents->append_attribute(doc.allocate_attribute("xmlns:m", "http://schemas.microsoft.com/exchange/services/2006/messages"));

            xml_node<>* subscriptionIds = doc.allocate_node(node_element, "m:SubscriptionIds");
            {
                for (const bcstring& subscriptionId : m_subscriptionIds)
                {
                    xml_node<>* subscriptionIdNode  = doc.allocate_node(node_element, "t:SubscriptionId");
                    xml_node<>* subscriptionIdValue = doc.allocate_node(node_data, "", subscriptionId.c_str());
                    subscriptionIdNode->append_node(subscriptionIdValue);
                    subscriptionIds->append_node(subscriptionIdNode);
                }
            }

            getStreamingEvents->append_node(subscriptionIds);

            xml_node<>* connectionTimeout      = doc.allocate_node(node_element, "m:ConnectionTimeout");
            bcstring connectionTimeoutString   = std::to_string(m_connectionTimeout);
            xml_node<>* connectionTimeoutValue = doc.allocate_node(node_data, "", connectionTimeoutString.c_str());
            connectionTimeout->append_node(connectionTimeoutValue);
            getStreamingEvents->append_node(connectionTimeout);
        }

        body->append_node(getStreamingEvents);
    }
    envelope->append_node(body);
}

bcstring retVal;
print(std::back_inserter(retVal), doc, print_no_indenting);

return retVal;
}
bcstring GetStreamingEventsRequest::buildSoapRequest()常量
{
xml_文档文档;
xml\u node*decl=doc.allocate\u node(node\u声明);
decl->append_属性(文档分配_属性(“版本”、“1.0”);
decl->append_属性(文档分配_属性(“编码”、“utf-8”);
单据追加节点(decl);
//封套
xml_node*envelope=doc.allocate_节点(node_元素,“soap:envelope”);
信封->附加属性(文档分配属性(“xmlns:soap”)http://schemas.xmlsoap.org/soap/envelope/"));
信封->附加属性(文档分配属性(“xmlns:t”)http://schemas.microsoft.com/exchange/services/2006/types"));
单据追加节点(信封);
{
//标题
xml_node*header=doc.allocate_节点(node_元素,“soap:header”);
{
xml_节点*reqServerVersion=doc.allocate_节点(节点元素,“t:RequestServerVersion”);
xml_属性*serverVersionAttribute=doc.allocate_属性(“Version”,m_requestedServerVersion.c_str());
reqServerVersion->append_属性(serverVersionAttribute);
标题->附加节点(reqServerVersion);
}
信封->附加节点(标题);
//身体
xml_node*body=doc.allocate_节点(node_元素,“soap:body”);
{
xml_节点*getStreamingEvents=doc.allocate_节点(节点_元素,“m:getStreamingEvents”);
{
getStreamingEvents->append_属性(doc.allocate_属性(“xmlns:m”)http://schemas.microsoft.com/exchange/services/2006/messages"));
xml\u node*subscriptionId=doc.allocate\u node(node\u元素,“m:subscriptp
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
  <t:RequestServerVersion Version="Exchange2010_SP2" />
</soap:Header>
<soap:Body>
  <m:GetStreamingEvents xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
     <m:SubscriptionIds>
        <t:SubscriptionId>JwBkYjVwcjA2bWIxNDY0LmV1cnByZDA2LnByb2Qub3V0bG9vay5jb20QAAAADv7qpS0xbU6V0mCxt2SvFHYOYoCq1dQIEAAAAMiCIP/mQqJOjzx9Aog45Fk=</t:SubscriptionId>
     </m:SubscriptionIds>
     <m:ConnectionTimeout>30</m:ConnectionTimeout>
  </m:GetStreamingEvents>
  </soap:Body>
  </soap:Envelope>
<Envelope
xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<soap11:Header
    xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
    <ServerVersionInfo
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="1" MajorBuildNumber="1282" MinorBuildNumber="22" Version="V2017_04_14"
        xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
    </soap11:Header>
    <soap11:Body
        xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
        <m:GetStreamingEventsResponse
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
            xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
            <m:ResponseMessages>
                <m:GetStreamingEventsResponseMessage ResponseClass="Success">
                    <m:ResponseCode>NoError</m:ResponseCode>
                    <m:ConnectionStatus>OK</m:ConnectionStatus>
                </m:GetStreamingEventsResponseMessage>
            </m:ResponseMessages>
        </m:GetStreamingEventsResponse>
    </soap11:Body>
</Envelope>
<Envelope
    xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <soap11:Header
        xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
        <ServerVersionInfo
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="1" MajorBuildNumber="1282" MinorBuildNumber="22" Version="V2017_04_14"
            xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
        </soap11:Header>
        <soap11:Body
            xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
            <m:GetStreamingEventsResponse
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
                xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
                <m:ResponseMessages>
                    <m:GetStreamingEventsResponseMessage ResponseClass="Success">
                        <m:ResponseCode>NoError</m:ResponseCode>
                        <m:Notifications>
                            <m:Notification>
                                <t:SubscriptionId>JwBkYjVwcjA2bWIxNDY0LmV1cnByZDA2LnByb2Qub3V0bG9vay5jb20QAAAA4mbQZqHZf0aA35Z5r1UEvPZtJfmw1dQIEAAAAMiCIP/mQqJOjzx9Aog45Fk=</t:SubscriptionId>
                                <t:CreatedEvent>
                                    <t:TimeStamp>2017-07-28T12:06:04Z</t:TimeStamp>
                                    <t:ItemId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQBGAAAAAADKa2Su6/EXRrsmOefDSCL3BwBEITO0krAyRbRmLsC3JNeGAAAAAAEMAABEITO0krAyRbRmLsC3JNeGAAAdPAOsAAA=" ChangeKey="CQAAAA==" />
                                    <t:ParentFolderId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQAuAAAAAADKa2Su6/EXRrsmOefDSCL3AQBEITO0krAyRbRmLsC3JNeGAAAAAAEMAAA=" ChangeKey="AQAAAA==" />
                                </t:CreatedEvent>
                                <t:NewMailEvent>
                                    <t:TimeStamp>2017-07-28T12:06:04Z</t:TimeStamp>
                                    <t:ItemId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQBGAAAAAADKa2Su6/EXRrsmOefDSCL3BwBEITO0krAyRbRmLsC3JNeGAAAAAAEMAABEITO0krAyRbRmLsC3JNeGAAAdPAOsAAA=" ChangeKey="CQAAAA==" />
                                    <t:ParentFolderId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQAuAAAAAADKa2Su6/EXRrsmOefDSCL3AQBEITO0krAyRbRmLsC3JNeGAAAAAAEMAAA=" ChangeKey="AQAAAA==" />
                                </t:NewMailEvent>
                                <t:ModifiedEvent>
                                    <t:TimeStamp>2017-07-28T12:06:04Z</t:TimeStamp>
                                    <t:FolderId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQAuAAAAAADKa2Su6/EXRrsmOefDSCL3AQBEITO0krAyRbRmLsC3JNeGAAAAAAEMAAA=" ChangeKey="AQAAAA==" />
                                    <t:ParentFolderId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQAuAAAAAADKa2Su6/EXRrsmOefDSCL3AQBEITO0krAyRbRmLsC3JNeGAAAAAAEIAAA=" ChangeKey="AQAAAA==" />
                                    <t:UnreadCount>1</t:UnreadCount>
                                </t:ModifiedEvent>
                            </m:Notification>
                        </m:Notifications>
                    </m:GetStreamingEventsResponseMessage>
                </m:ResponseMessages>
            </m:GetStreamingEventsResponse>
        </soap11:Body>
    </Envelope>
    <Envelope
        xmlns="http://schemas.xmlsoap.org/soap/envelope/">
        <soap11:Header
            xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
            <ServerVersionInfo
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="1" MajorBuildNumber="1282" MinorBuildNumber="22" Version="V2017_04_14"
                xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
            </soap11:Header>
            <soap11:Body
                xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
                <m:GetStreamingEventsResponse
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
                    xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
                    <m:ResponseMessages>
                        <m:GetStreamingEventsResponseMessage ResponseClass="Success">
                            <m:ResponseCode>NoError</m:ResponseCode>
                            <m:ConnectionStatus>OK</m:ConnectionStatus>
                        </m:GetStreamingEventsResponseMessage>
                    </m:ResponseMessages>
                </m:GetStreamingEventsResponse>
            </soap11:Body>
        </Envelope>
        <Envelope
            xmlns="http://schemas.xmlsoap.org/soap/envelope/">
            <soap11:Header
                xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
                <ServerVersionInfo
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="1" MajorBuildNumber="1282" MinorBuildNumber="22" Version="V2017_04_14"
                    xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
                </soap11:Header>
                <soap11:Body
                    xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
                    <m:GetStreamingEventsResponse
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
                        xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
                        <m:ResponseMessages>
                            <m:GetStreamingEventsResponseMessage ResponseClass="Success">
                                <m:ResponseCode>NoError</m:ResponseCode>
                                <m:ConnectionStatus>OK</m:ConnectionStatus>
                            </m:GetStreamingEventsResponseMessage>
                        </m:ResponseMessages>
                    </m:GetStreamingEventsResponse>
                </soap11:Body>
            </Envelope>
            <Envelope
                xmlns="http://schemas.xmlsoap.org/soap/envelope/">
                <soap11:Header
                    xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
                    <ServerVersionInfo
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="1" MajorBuildNumber="1282" MinorBuildNumber="22" Version="V2017_04_14"
                        xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
                    </soap11:Header>
                    <soap11:Body
                        xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
                        <m:GetStreamingEventsResponse
                            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                            xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
                            xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
                            <m:ResponseMessages>
                                <m:GetStreamingEventsResponseMessage ResponseClass="Success">
                                    <m:ResponseCode>NoError</m:ResponseCode>
                                    <m:Notifications>
                                        <m:Notification>
                                            <t:SubscriptionId>JwBkYjVwcjA2bWIxNDY0LmV1cnByZDA2LnByb2Qub3V0bG9vay5jb20QAAAA4mbQZqHZf0aA35Z5r1UEvPZtJfmw1dQIEAAAAMiCIP/mQqJOjzx9Aog45Fk=</t:SubscriptionId>
                                            <t:ModifiedEvent>
                                                <t:TimeStamp>2017-07-28T12:07:39Z</t:TimeStamp>
                                                <t:ItemId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQBGAAAAAADKa2Su6/EXRrsmOefDSCL3BwBEITO0krAyRbRmLsC3JNeGAAAAAAEMAABEITO0krAyRbRmLsC3JNeGAAAdPAOsAAA=" ChangeKey="CQAAAA==" />
                                                <t:ParentFolderId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQAuAAAAAADKa2Su6/EXRrsmOefDSCL3AQBEITO0krAyRbRmLsC3JNeGAAAAAAEMAAA=" ChangeKey="AQAAAA==" />
                                            </t:ModifiedEvent>
                                            <t:ModifiedEvent>
                                                <t:TimeStamp>2017-07-28T12:07:39Z</t:TimeStamp>
                                                <t:FolderId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQAuAAAAAADKa2Su6/EXRrsmOefDSCL3AQBEITO0krAyRbRmLsC3JNeGAAAAAAEMAAA=" ChangeKey="AQAAAA==" />
                                                <t:ParentFolderId Id="AAMkAGZmMjA4MmM4LTQyZTYtNGVhMi04ZjNjLTdkMDI4ODM4ZTQ1OQAuAAAAAADKa2Su6/EXRrsmOefDSCL3AQBEITO0krAyRbRmLsC3JNeGAAAAAAEIAAA=" ChangeKey="AQAAAA==" />
                                                <t:UnreadCount>0</t:UnreadCount>
                                            </t:ModifiedEvent>
                                        </m:Notification>
                                    </m:Notifications>
                                </m:GetStreamingEventsResponseMessage>
                            </m:ResponseMessages>
                        </m:GetStreamingEventsResponse>
                    </soap11:Body>
                </Envelope>
                <Envelope
                    xmlns="http://schemas.xmlsoap.org/soap/envelope/">
                    <soap11:Header
                        xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
                        <ServerVersionInfo
                            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="1" MajorBuildNumber="1282" MinorBuildNumber="22" Version="V2017_04_14"
                            xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
                        </soap11:Header>
                        <soap11:Body
                            xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
                            <m:GetStreamingEventsResponse
                                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
                                xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
                                <m:ResponseMessages>
                                    <m:GetStreamingEventsResponseMessage ResponseClass="Success">
                                        <m:ResponseCode>NoError</m:ResponseCode>
                                        <m:ConnectionStatus>Closed</m:ConnectionStatus>
                                    </m:GetStreamingEventsResponseMessage>
                                </m:ResponseMessages>
                            </m:GetStreamingEventsResponse>
                        </soap11:Body>
                    </Envelope>