Retrieving Pending Operations From SAP Mobile Server

Understand how the EIS fetches pending operations from SAP Mobile Server using SAP Mobile Server HTTP services.

General Rules

Querying Pending Operations

The HTTP client can query the list of PendingOperations by making a GET request to this URL:
http://domain:port/end2end.rdb:1.0/PendingOperations?username=test&
remoteId=cc134c3a-1e7b-41cf-821c-900ec61eef91&$skip=0&$top=10
All parameters are optional. If username and remoteId are not provided, SAP Mobile Server returns all pending operations for the package. Successful invocation generates get response 200 OK with the entity set in JSON format in the response body:
[ 
{"data":"{\"id\":1,\"lname\":\"lname2\",\"fname\":\"fname1\",\"id1\":3520011}",
"entityName":"topicCustomer","operation":"ChangeNameNeedManager","requestId":3520012,
"remoteId":"582b509f-677e-4879-b1fb-d2e0f11d9deb","username":"test"}, 
{"data":"{\"id\":2,\"lname\":\"lname4\",\"fname\":\"fname3\",\"id1\":3520013}",
"entityName":"topicCustomer","operation":"ChangeNameNeedManager","requestId":3520014,
"remoteId":"582b509f-677e-4879-b1fb-d2e0f11d9deb","username":"test"} 
]

Updating Pending Operations

The HTTP client can update a list of PendingOperations by making a PUT request to this URL:
http://domain:port/end2end.rdb:1.0/UpdatePendingOperations
with this put string:
{"data":[ 
{"success":false,"requestId":13930007,"errorMessage":"It must fail!","eisCode":"1234"},
{"success":false,"requestId":13930009,"errorMessage":"It must fail!","eisCode":"1234"}, 
{"success":true,"requestId":13930008}]}