126.96.36.199 Protocol-Specific Details
Using remote operations (ROPs)
Figure 33: Synchronizing items by using ROPs
The client opens the specified folder per the use case described in section 2.5.9.
The client issues a RopSynchronizationConfigure ROP request ([MS-OXCROPS] section 188.8.131.52) by using the handle to the folder to initiate the synchronization.
The Exchange server responds with a handle to the synchronization.
The client uses a series of RopSynchronizationUploadStateStreamBegin ([MS-OXCROPS] section 184.108.40.206), RopSynchronizationUploadStateStreamContinue ([MS-OXCROPS] section 220.127.116.11), and RopSynchronizationUploadStateStreamEnd ([MS-OXCROPS] section 18.104.22.168) ROP requests to upload the client's Incremental Change Synchronization (ICS) state, as described in [MS-OXCFXICS], to the Exchange server, which prepares the list of changed items for the client to download based on the uploaded ICS state.
The client issues a RopFastTransferSourceGetBuffer ROP request ([MS-OXCROPS] section 22.214.171.124) to obtain the list of changes from the Exchange server.
The Exchange server responds to the request with the full list of changes as well as the new ICS state.
The client applies the changes to the folder items and saves the new ICS state for subsequent synchronizations.
Using Exchange ActiveSync
Figure 34: Synchronizing items by using Exchange ActiveSync
The client issues a Sync command request, as described in [MS-ASCMD] section 126.96.36.199, with a GetChanges element, as described in [MS-ASCMD] section 188.8.131.52, to the Exchange server requesting a list of all changes that have occurred in the specified collection (folder) since the last successful synchronization.
The Exchange server responds with a series of Sync command responses, as described in [MS-ASCMD] section 184.108.40.206, that the client processes to synchronize with the Exchange server.
Using Exchange Web Services
Figure 35: Synchronizing items by using Exchange Web Services
The client uses the HTTPS/SOAP SyncFolderItemsSoapIn request message, as described in [MS-OXWSSYNC] section 220.127.116.11.1.1, to synchronize the changes to items in the folder specified in the SyncFolderId element. The SyncState element provides the state of the last synchronization and acts as a starting marker for synchronizing new changes.
The Exchange Client Access server responds with a SyncFolderItemsSoapOut response message, as described in [MS-OXWSSYNC] section 18.104.22.168.1.2, which includes a ResponseCode element, a new SyncState marker, and a list of changes.
The client applies changes to the folder by using information in the SyncFolderItemsSoapOut response, and saves the SyncState value that was returned in the SyncFolderItemsSoapOut response.