The Normal Mechanism

So how does Exchange Web Services report errors back to you, the ever vigilant developer? Exchange Web Services uses response messages to marry the results of a given batched operation with the status of that operation. Figure 18-1 shows the general structure of a response message.[245]

Response message makeup

Figure 18-1. Response message makeup

Before we dig in too far, take a look at an example. Let’s successfully create an item by using the CreateItem Web method and see what comes back. Example 18-1 shows the response.

Example 18-1. Successful CreateItem response

<CreateItemResponse xmlns:m=".../messages" xmlns:t=".../types" xmlns=".../messages"> <m:ResponseMessages> ...

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.