Item Operations
GetItem
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 ...
Get Inside Microsoft® Exchange Server 2007 Web Services now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.