4.6 Updating a Post Object

In this scenario, Jason wants to update the copy of the original Post object that was created in the example in section 4.1 to announce the next company meeting on October 21.

The following is the client request to update the Post object.

 <?xml version="1.0" encoding="utf-16"?>
 <UpdateItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ConflictResolution="AlwaysOverwrite">
   <ItemChanges xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
     <ItemChange xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
       <ItemId Id="AQIARgAAAxpEc5CqZhHNm8gAqgAvxFoJALc3Iqrb5rxDhrUn6kXjFS4AARH6mqcAAAC3NyKq2+a8Q4a1J+pF4xUuAAER+pqyAAAALgAAAxpEc5CqZhHNm8gAqgAvxFoDALc3Iqrb5rxDhrUn6kXjFS4AARH6mqcAAAA=" ChangeKey="FgAAABYAAAC3NyKq2+a8Q4a1J+pF4xUuAAER+py4" />
       <Updates>
         <SetItemField>
           <FieldURI FieldURI="item:Subject" />
           <PostItem>
             <Subject>Company meeting scheduled for October 21</Subject>
           </PostItem>
         </SetItemField>
       </Updates>
     </ItemChange>
   </ItemChanges>
 </UpdateItemType>

The following is the server response.

 <?xml version="1.0" encoding="utf-16"?>
 <UpdateItemResponseType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <ResponseMessages xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
     <UpdateItemResponseMessage ResponseClass="Success">
       <ResponseCode>NoError</ResponseCode>
       <Items>
         <PostItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <ItemId Id="AQIARgAAAxpEc5CqZhHNm8gAqgAvxFoJALc3Iqrb5rxDhrUn6kXjFS4AARH6mqcAAAC3NyKq2+a8Q4a1J+pF4xUuAAER+pqyAAAALgAAAxpEc5CqZhHNm8gAqgAvxFoDALc3Iqrb5rxDhrUn6kXjFS4AARH6mqcAAAA=" ChangeKey="FgAAABYAAAC3NyKq2+a8Q4a1J+pF4xUuAAER+py6" />
         </PostItem>
       </Items>
       <ConflictResults>
         <Count xmlns="http://schemas.microsoft.com/exchange/services/2006/types">0</Count>
       </ConflictResults>
     </UpdateItemResponseMessage>
   </ResponseMessages>
 </UpdateItemResponseType>
Show: