If you create a request through ui5 oData Model, it converts the request body into xml which you don't have to worry. The oData model instance has to be created as,
var oModel = new sap.ui.model.odata.ODataModel(url,false); // false --> XML
If you create a request through ui5 oData Model, it converts the request body into xml which you don't have to worry. The oData model instance has to be created as,
var oModel = new sap.ui.model.odata.ODataModel(url,false); // false --> XML