Data change notifications (DCNs) with payload directly update the Unwired Server cache, either with the built-in, direct cache-affecting operations :upsert (update or insert), or with :delete.
DCN with payload requires a JavaScript Object Notation (JSON) string (dcn_request) that contains one or more :upsert and :delete operations that are applied to the Unwired Server cache (CDB).
http://SAP_mobile_server_host:SAP_mobile_server_port(default 8000)/dcn/DCNServlet
? cmd=dcn
&username=userName
&password=password
&domain=domainName
&package=SAP_mobile_server_PackageName
&dcn_request={"pkg":"dummy","messages":[{"id":"1","mbo":"CustomerWithParam", "exp":"2012-09-29 00:20:00",
"op":":upsert","cols":{"id":"10001","fname":"Adam"}}]}
&dcn_filter=fully_qualified_name_of_dcn_filter
base64encode("{\"username\":\"supAdmin\",\"password\":\"test\"}");
See
Data Change Notification Requirements and
Guidelines for guidelines including how to build the
ppm.this DCN contains a single :upsert operation that updates or inserts (upserts) data in the Unwired Server cache for the Department MBO.
http://dsqavm5:8000/dcn/DCNServlet?cmd=dcn&username=
supAdmin&password=supPwd&package=dept:1.0&domain=default&dcn_request=
{"pkg":"dummy","messages":[{"id":"1","mbo":"Department","op":":upsert",
"cols":{"dept_id":"2","dept_name":"D2","dept_head_id":"501"}}]}
dcn_request={"pkg":“TestPackage",
"messages":
[{"id":"1","mbo":"Department",
"op":":upsert",
"cols":{"DepartmentID":"3333",
"DepartmentName":"Test Value",
"DepartmentHeadID":"501"}}]
}
http://dspevm5:8000/dcn/DCNServlet?cmd=dcn&username=
supAdmin&password=supPwd&package=dept:1.0&domain=default&dcn_request=
{"pkg":"dummy","messages":[{"id":"1","mbo":"Department","op":":delete",
"cols":{"dept_id":"2"}}]}
dcn_request={"pkg":“TestPackage",
"messages":[{"id":"1","mbo":"Department",
"op":":delete",
"cols":{"DepartmentID":"3333"}}]}
For example, 2009-03-04T17:12:45.