Export (0) Print
Expand All

4.5 Retrieving a Calendar Item

The following example demonstrates a client request to retrieve the identifier and subject of a calendar item, and the server response.

Request:

 <?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" />
   </soap:Header>
   <soap:Body>
     <GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
       <ItemShape>
         <t:BaseShape>IdOnly</t:BaseShape>
         <t:AdditionalProperties>
           <t:FieldURI FieldURI="item:Subject"/>
         </t:AdditionalProperties>
       </ItemShape>
       <ItemIds>
         <t:ItemId Id="AsdD89=" ChangeKey="Jajs3=="/>
       </ItemIds>
     </GetItem>
   </soap:Body>
 </soap:Envelope>

Response:

 <?xml version="1.0" encoding="utf-8"?>
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
       <t:ServerVersionInfo MajorVersion="8" MinorVersion="1" MajorBuildNumber="344" MinorBuildNumber="0" Version="Exchange2010" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
    </soap:Header>
    <soap:Body>
     <GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" 
                    xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" 
                    xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
       <m:ResponseMessages>
         <m:GetItemResponseMessage ResponseClass="Success">
           <m:ResponseCode>NoError</m:ResponseCode>
           <m:Items>
             <t:CalendarItem>
               <t:ItemId Id="ASUAd" ChangeKey="otlIqB=="/>
             </t:CalendarItem>
           </m:Items>
         </m:GetItemResponseMessage>
       </m:ResponseMessages>
     </GetItemResponse>
   </soap:Body>
 </soap:Envelope>
Show:
© 2016 Microsoft