4 Protocol Examples
This section provides a simplified example of a request/response sequence for the FindConversation operation, as specified in section 3.1.4.2.
The following example shows a FindConversation request to return a single conversation from the default Inbox folder.
-
<?xml version="1.0" encoding="utf-8" ?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"> <soap:Header> <t:RequestServerVersion Version="Exchange2010_SP1" /> </soap:Header> <soap:Body> <m:FindConversation> <m:IndexedPageItemView BasePoint="Beginning" MaxEntriesReturned="1" Offset="0"/> <m:ParentFolderId> <t:DistinguishedFolderId Id ="inbox"/> </m:ParentFolderId> </m:FindConversation> </soap:Body> </soap:Envelope>
The following example shows a FindConversation response to the request to return a single conversation from the default Inbox folder.
-
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <t:ServerVersionInfo MajorVersion="14" MinorVersion="1" MajorBuildNumber="139" MinorBuildNumber="0" Version="Exchange2010_SP1" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> </soap:Header> <soap:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <FindConversationResponse ResponseClass="Success" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"> <ResponseCode>NoError</ResponseCode> <Conversations> <t:Conversation xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> <t:ConversationId Id="AAQkAGYzZjZmNjk5LTIyNTQtNDBjZS05OTk0LTM4OGQ5ZDk4NDE5ZQAQAAGD7JNksE4zm4ATHm5DvYc="/> <t:ConversationTopic>Most fascinating</t:ConversationTopic> <t:UniqueRecipients> <t:String>User1@aujing-dom.extest.microsoft.com</t:String> <t:String>User2@aujing-dom.extest.microsoft.com</t:String> </t:UniqueRecipients> <t:GlobalUniqueRecipients> <t:String>User1@aujing-dom.extest.microsoft.com</t:String> <t:String>User2@aujing-dom.extest.microsoft.com</t:String> </t:GlobalUniqueRecipients> <t:UniqueUnreadSenders> <t:String>Microsoft Outlook</t:String> </t:UniqueUnreadSenders> <t:GlobalUniqueUnreadSenders> <t:String>Microsoft Outlook</t:String> </t:GlobalUniqueUnreadSenders> <t:UniqueSenders> <t:String>Microsoft Outlook</t:String> </t:UniqueSenders> <t:GlobalUniqueSenders> <t:String>Microsoft Outlook</t:String> <t:String>UserOne</t:String> </t:GlobalUniqueSenders> <t:LastDeliveryTime>2010-04-03T23:15:49Z</t:LastDeliveryTime> <t:GlobalLastDeliveryTime>2010-04-03T23:15:49Z</t:GlobalLastDeliveryTime> <t:HasAttachments>false</t:HasAttachments> <t:GlobalHasAttachments>false</t:GlobalHasAttachments> <t:MessageCount>1</t:MessageCount> <t:GlobalMessageCount>2</t:GlobalMessageCount> <t:UnreadCount>1</t:UnreadCount> <t:GlobalUnreadCount>1</t:GlobalUnreadCount> <t:Size>6505</t:Size> <t:GlobalSize>7814</t:GlobalSize> <t:ItemClasses> <t:ItemClass>REPORT.IPM.Note.NDR</t:ItemClass> </t:ItemClasses> <t:GlobalItemClasses> <t:ItemClass>REPORT.IPM.Note.NDR</t:ItemClass> <t:ItemClass>IPM.Note</t:ItemClass> </t:GlobalItemClasses> <t:Importance>Normal</t:Importance> <t:GlobalImportance>Normal</t:GlobalImportance> <t:ItemIds> <t:ItemId Id="AAMkAGYzZjidkC+NAAAAY89GAAA=" ChangeKey="CQAAAA=="/> </t:ItemIds> <t:GlobalItemIds> <t:ItemId Id="AAMkAGYzZjidkC+NAAAAY89GAAA=" ChangeKey="CQAAAA=="/> <t:ItemId Id="AAMkAGYzZjidkC+NAAAAY9LrAAA=" ChangeKey="CQAAAA=="/> </t:GlobalItemIds> </t:Conversation> </Conversations> </FindConversationResponse> </soap:Body> </soap:Envelope>