Retrieve data from Service Manager for Optimistic Locking

You can retrieve data via a Web service for later use in an update using optimistic locking by using an additional attribute:

  • updatecounter – a boolean value specifying if the response should include the attribute updatecounter that can be used on a subsequent update request to optimistically lock the record. The value returned in the updatecounter attribute can be specified on a subsequent update request as the value of the updatecontraint attribute. If the value of the updateconstraint matches the value in the database the update is allowed. If the updateconstraint value does not match the value in the database the update is rejected with a return code of 51 and the message “Record modified since last retrieved”

For example to retrieve the data with the updatecounter.