O'Reilly logo

Inside Microsoft® Exchange Server 2007 Web Services by Huw Upshall, Mark Taylor, Ben Spain, Michael Mainer, David Sterling

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required