Ongoing Warehouse Developer

GetTimeOfLastSync

Allows you to read back the last sync time set by SetTimeOfLastSync.

Tags: GetTimeOfLastSync, GetTimeOfLastSyncResponse

Request XML

POST /xxx/service.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/WSI/GetTimeOfLastSync"

<?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/">
  <soap:Body>
    <GetTimeOfLastSync xmlns="http://ongoingsystems.se/WSI">
      <UserName>string</UserName>
      <Password>string</Password>
      <GoodsOwnerId>int</GoodsOwnerId>
      <IntegrationType>string</IntegrationType>
    </GetTimeOfLastSync>
  </soap:Body>
</soap:Envelope>
+

Request specification

GetTimeOfLastSync
UserName str(50) Req. Your username.
Password str(50) Req. Your password.
GoodsOwnerId int Req. The ID of your client.
IntegrationType str(50) Req. The identifier of the process.

Response XML

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?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/">
  <soap:Body>
    <GetTimeOfLastSyncResponse xmlns="http://ongoingsystems.se/WSI">
      <GetTimeOfLastSyncResult>dateTime</GetTimeOfLastSyncResult>
    </GetTimeOfLastSyncResponse>
  </soap:Body>
</soap:Envelope>
+

Response specification

GetTimeOfLastSyncResponse
GetTimeOfLastSyncResult datetime The time when the process last synced with Ongoing (possibly null if no such time exists).