Ending the Synchronization Session

The final step after exchanging data is to call the EndSynchronization operation. This marks the synchronization session as complete and causes the system to increment the synchronization window the next time that a client starts a synchronization session.


<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header>
    <ns3:Session xmlns:ns3="urn:soap.convio.com" soapenv:mustUnderstand="0">
      <ns3:SessionId>3868cf8ebb49e046a024e18ad8420ea931fe8b64:JSESSIONID=abc_g9cmWx9L0_dZyWZ3r:10000101:2008-12-01T18:13:47.722Z</ns3:SessionId>
    </ns3:Session>
  </soapenv:Header>
  <soapenv:Body>
    <ns3:EndSynchronization xmlns:ns3="urn:soap.convio.com">
      <ns3:PartitionId>123</ns3:PartitionId>
    </ns3:EndSynchronization>
  </soapenv:Body>
</soapenv:Envelope>

Luminate Online responds by confirming the time window and ID of the active synchronization:


<?xml version='1.0' encoding='UTF-8'?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <EndSynchronizationResponse xmlns="urn:soap.convio.com">
      <Result>
        <PartitionId>10000104</PartitionId>
        <Start>2008-12-01T18:13:44Z</Start>
        <End>2008-12-01T18:13:47Z</End>
        <SyncId>118</SyncId>
      </Result>
    </EndSynchronizationResponse>
  </soap:Body>
</soap:Envelope>

Note: Your middleware should record each session's SyncId. It can be used to retrieve a log of the records updated and downloaded during the session at a later date.

Leave a Comment

Nickname
Comment
Enter this word: