Export (0) Print
Expand All

4.5 Retrieving a Post Object

In this scenario, Jason wants to view the new Post object that he just created to make sure that there are no errors.

The following is the client request to retrieve the Post object from the server.

<?xml version="1.0" encoding="utf-16"?>
<GetItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ItemShape xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
    <BaseShape xmlns="http://schemas.microsoft.com/exchange/services/2006/types">Default</BaseShape>
  </ItemShape>
  <ItemIds xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
    <ItemId Id="AQIARgAAAxpEc5CqZhHNm8gAqgAvxFoJALc3Iqrb5rxDhrUn6kXjFS4AARH6mqcAAAC3NyKq2+a8Q4a1J+pF4xUuAAER+pqyAAAALgAAAxpEc5CqZhHNm8gAqgAvxFoDALc3Iqrb5rxDhrUn6kXjFS4AARH6mqcAAAA=" ChangeKey="FgAAABYAAAC3NyKq2+a8Q4a1J+pF4xUuAAER+py4" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" />
  </ItemIds>
</GetItemType>

The following is the server response.

<?xml version="1.0" encoding="utf-16"?>
<GetItemResponseType 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">
    <GetItemResponseMessage 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" />
          <Subject>Company meeting scheduled for July 22</Subject>
          <HasAttachments>false</HasAttachments>
          <ConversationIndex>AcxcN9djfXVXymjrQSGXSyVFdhtJJA==</ConversationIndex>
          <ConversationTopic>Company meeting scheduled for July 22</ConversationTopic>
          <From>
            <Mailbox>
              <Name>Jason Carlson</Name>
              <EmailAddress>jason@contoso.com</EmailAddress>
              <RoutingType>SMTP</RoutingType>
              <MailboxType>Mailbox</MailboxType>
            </Mailbox>
          </From>
          <InternetMessageId>&lt;B73722AADBE6BC4386B527EA45E3152E0111FA9EBE@E14MBX.contoso.com&gt;</InternetMessageId>
          <PostedTime>2011-08-16T17:13:39Z</PostedTime>
          <Sender>
            <Mailbox>
              <Name>Jason Carlson</Name>
              <EmailAddress>jason@contoso.com</EmailAddress>
              <RoutingType>SMTP</RoutingType>
              <MailboxType>Mailbox</MailboxType>
            </Mailbox>
          </Sender>
        </PostItem>
      </Items>
    </GetItemResponseMessage>
  </ResponseMessages>
</GetItemResponseType>
Show:
© 2015 Microsoft