Data change notifications (DCNs) can instruct Unwired Server to invoke a mobile business object (MBO) operation with a set of specified parameters. Changes to the Unwired Server cache are dependent on the operation’s specified behavior, which was defined during MBO development.
DCNs that invoke operations require a JavaScript Object Notation (JSON) string (dcn_request) that contains information about the MBO operation:
http://unwired_server.sybase.com:unwired_server_port/onepage/servlet/UWPServlet?
&cmd=dcn
&username=userName
&password=password
&package=unwired_server_PackageName
&dcn_request={"pkg":“TestPackage",
"messages":[{"id":"1","mbo":"mboName","op":“operationName",
"cols":{"operationParameters"}}]}
&dcn_filter=fully_qualified_name_of_dcn_filter
{"pkg":“TestPackage",
"messages":[{"id":"1","mbo":"Department","op":“UpdateDepartment",
"cols":{“UpdateDepartment_department_DepartmentID":"3333",
“UpdateDepartment_department_DepartmentName":“My Department",
“UpdateDepartment_department_DepartmentHeadID":"501"}}]}
dcn_request={"pkg":“TestPackage",
"messages":[
{"id":"1","mbo":"Department","op":“UpdateDepartment",
"cols":{“UpdateDepartment_department_DepartmentID":"3333",
“UpdateDepartment_department_DepartmentName":“My Department",
“UpdateDepartment_department_DepartmentHeadID":"501"}}
{"id":“2","mbo":“AnotherMBO","op":":upsert",
"cols":{“AnotherMBOID":“99",
“MyColumn":“Test ValueMy”}}]}