4.2 Creating a Post Object

In this scenario, Jason wants to create a new Post object to announce the upcoming company meeting on July 22.

The following is the client request to create a new Post object.

 <?xml version="1.0" encoding="utf-16"?>
 <CreateItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" MessageDisposition="SaveOnly">
   <SavedItemFolderId xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
     <FolderId Id="AQEuAAADGkRzkKpmEc2byACqAC/EWgMAtzciqtvmvEOGtSfqReMVLgABEfqapwAAAA==" ChangeKey="AQAAABYAAAC3NyKq2+a8Q4a1J+pF4xUuAAER+pqp" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
   </SavedItemFolderId>
   <Items xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
     <PostItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
       <Subject>Company meeting scheduled for July 22</Subject>
       <Body BodyType="HTML">Please see www.contoso.com/companymeeting for full details.</Body>
       <From>
         <Mailbox>
           <EmailAddress>jason@contoso.com</EmailAddress>
         </Mailbox>
       </From>
     </PostItem>
   </Items>
 </CreateItemType>

The following is the server response.

 <?xml version="1.0" encoding="utf-16"?>
 <CreateItemResponseType 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">
     <CreateItemResponseMessage 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+py4" />
         </PostItem>
       </Items>
     </CreateItemResponseMessage>
   </ResponseMessages>
 </CreateItemResponseType>
Show: