The standard way to retrieve an item from a mailbox in Exchange Web Services is to call the GetItem Web method. Let’s look at the structure of a GetItem call as shown in Example 5-1.
Example 5-1. Basic structure of a GetItem call
<GetItem xmlns=".../messages" xmlns:t=".../types"> <t:ItemShape/> <t:ItemIds/> </GetItem>
GetItem exposes two child elements. The first of these, ItemShape, defines the set of properties that you want to retrieve on each item that is returned. We discussed response shapes at length in Chapter 3. To reiterate, it is prudent to request only those properties that you need rather than over-using the AllProperties base shape. Get in the habit of using IdOnly and explicitly listing out the properties you ...