EWS SOAP操作 - 获取会议的暂定状态

时间:2016-07-03 05:35:58

标签: soap exchangewebservices

使用EWS operations(SOAP)如何获得会议的暂定状态? 我可以使用GetItem请求设置 AllProperties 而不是 IdOnly 作为BaseShape值来获取它,但我想避免这么大的xml响应。

有什么建议吗?

请求:

<t:IsAllDayEvent>false</t:IsAllDayEvent>
<t:LegacyFreeBusyStatus>Tentative</t:LegacyFreeBusyStatus>

响应:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
    <RequestServerVersion xmlns="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2013" soap:mustUnderstand="0"/>
</soap:Header>
<soap:Body>
    <m:GetItem Traversal="Shallow">
        <m:ItemShape>
            <t:BaseShape>AllProperties</t:BaseShape>
            <t:AdditionalProperties>
                <t:FieldURI FieldURI="item:Subject"/>
                <t:FieldURI FieldURI="item:TextBody"/>
            </t:AdditionalProperties>
        </m:ItemShape>
        <m:ItemIds>
            <t:ItemId Id="AAMkAGYxMTJlYTgyLTBmYzEtNGYxZS1iYmViLTI4YmUwNjliN2MzNgBGAAAAAAACkhFyvlR7SJUlGy2d/KnVBwCB2CePXX/CToeJqw2EFOoNAAAAAAENAADu1Rjhkj+hRIRrpcOyI08fAAAXZyRiAAA=" ChangeKey="DwAAABYAAADu1Rjhkj+hRIRrpcOyI08fAAAXZ6Nr"/>
        </m:ItemIds>
    </m:GetItem>
</soap:Body>
</soap:Envelope>

(完整请求:)

FreeBSD 10.3-BETA

1 个答案:

答案 0 :(得分:1)

您应该能够使用日历:LegacyFreeBusyStatus例如

<m:GetItem Traversal="Shallow">
        <m:ItemShape>
            <t:BaseShape>IdOnly</t:BaseShape>
            <t:AdditionalProperties>
                <t:FieldURI FieldURI="item:Subject"/>
                <t:FieldURI FieldURI="item:TextBody"/>
                <t:FieldURI FieldURI="calendar:LegacyFreeBusyStatus"/>
            </t:AdditionalProperties>
        </m:ItemShape>