Hi Inosh, You better write a parser in a flexible way to get this payload parsed. And for testing, initiate a payload in the local notification receiver and pass it to Operations controller after parsing. Try executing operations one by one and after the whole payload got executed, construct the reply payload and send it to the server. Be very careful when you are executing policies. See how policies work currently and from the payload you are getting, when you got a policy, try creating the policy payload as it was before or else you may need to change the policy execution mechanism as well.
Thanks On Tue, May 6, 2014 at 8:16 AM, Inosh Perera <ino...@wso2.com> wrote: > I started working on the testing phase of $subject. Since a parser for the > incoming json payload and the reply for the operation carried out for the > received payload has to be implemented before testing, I will be adding > those today. As Kasun mentioned earlier in "EMM Release thread", I will be > using the following as the payload, > > Input to device: > [ > { > "feature_code": "500P", > "data": [ > { > "mesage_id": "1", > "data": { > "feature_code": "503A", > "data": null > } > }, > { > "mesage_id": "2", > "data": { > "feature_code": "506A", > "data": { > "SSID": "WSO2", > "PASSWORD": "abcd" > } > } > } > ] > }, > { > "feature_code": "509A", > "data": [ > { > "mesage_id": "2", > "data": { > "function": "disabled" > } > } > ] > } > ] > > Reply from device: > [ > { > "feature_code": "500P", > "data": [ > { > "mesage_id": "1", > "status": "true" > }, > { > "mesage_id": "2", > "status": "true" > } > ] > }, > { > "feature_code": "509A", > "data": [ > { > "mesage_id": "1", > "status": "true" > } > ] > } > ] > > > Regards, > -- > Inosh Perera > Software Engineer, WSO2 Inc. > Tel: 0785293686 > -- Kasun Dananjaya Delgolla Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Tel: +94 11 214 5345 Fax: +94 11 2145300 Mob: + 94 777 997 850 Blog: http://kddcodingparadise.blogspot.com Linkedin: *http://lk.linkedin.com/in/kasundananjaya <http://lk.linkedin.com/in/kasundananjaya>*
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture