Skip to Content
0
Oct 11, 2013 at 01:11 PM

How to do create operation in Json model?

882 Views

Hi,

I have done sample application which is having create operation using oData model by following the below link.

http://scn.sap.com/community/developer-center/front-end/blog/2012/06/06/sample-ume-application-using-sapui5-and-sap-gateway--part-ii

It's working fine and I can create the records in back end.

Now I am doing same application for mobile using JSON Model .In that application when I am sending request to the back end in the same way I am getting the below error message.

CX_SXML_PARSE_ERROR/001560AA0E081DEB8CA398CC1690D406Error while parsing an XML stream206B32E3A013F1A29B1D20CF30C48576

when I observe the xml data in Request Payload for both desktop and mobile applications, they are in different format.

Please suggest me , If any one knows to send the data to the back end with CSRF token in JSON model not in oData model

Thanks&Regards

Sridevi.G