Synchronizing Folders by Using the FolderSync Command
request:
<?xml version="1.0" encoding="utf-8"?> <FolderSync xmlns="FolderHierarchy"> <SyncKey>0</SyncKey> </FolderSync> response:
<?xml version="1.0" encoding="utf-8"?> <FolderSync xmlns="FolderHierarchy"> <Status>1</Status> <SyncKey>1</SyncKey> <Changes> <Count>13</Count> <Add> <ServerId>1</ServerId> <ParentId>0</ParentId> <DisplayName>Calendar</DisplayName> <Type>8</Type> </Add> <Add> <ServerId>2</ServerId> <ParentId>0</ParentId> <DisplayName>Contacts</DisplayName> <Type>9</Type> </Add> <Add> <ServerId>3</ServerId> <ParentId>0</ParentId> <DisplayName>Deleted Items</DisplayName> <Type>4</Type> </Add> <Add> <ServerId>4</ServerId> <ParentId>0</ParentId> <DisplayName>Drafts</DisplayName> <Type>3</Type> </Add> <Add> <ServerId>5</ServerId> <ParentId>0</ParentId> <DisplayName>Inbox</DisplayName> <Type>2</Type> </Add> <Add> <ServerId>12</ServerId> <ParentId>5</ParentId> <DisplayName>NewFolder</DisplayName> <Type>12</Type> </Add> <Add> <ServerId>6</ServerId> <ParentId>0</ParentId> <DisplayName>Journal</DisplayName> <Type>11</Type> </Add> <Add> <ServerId>7</ServerId> <ParentId>0</ParentId> <DisplayName>Junk E-Mail</DisplayName> <Type>12</Type> </Add> <Add> <ServerId>8</ServerId> <ParentId>0</ParentId> <DisplayName>Notes</DisplayName> <Type>10</Type> </Add> <Add> <ServerId>9</ServerId> <ParentId>0</ParentId> <DisplayName>Outbox</DisplayName> <Type>6</Type> </Add> <Add> <ServerId>10</ServerId> <ParentId>0</ParentId> <DisplayName>Sent Items</DisplayName> <Type>5</Type> </Add> <Add> <ServerId>11</ServerId> <ParentId>0</ParentId> <DisplayName>Tasks</DisplayName> <Type>7</Type> </Add> <Add> <ServerId>RI</ServerId> <ParentId>0</ParentId> <DisplayName>RecipientInfo</DisplayName> <Type>19</Type> </Add> </Changes> </FolderSync>
activesync
时间: 2024-10-25 20:40:31