Converting OData using SAPUI5 libraries to JSON format

SAPSAP UI5JSON

This can be done in multiple ways. One of common approach would be by passing user name/password in URL.

$.ajax({
   url : "http://user:password@url/SERVICE?$format=json",
   type: "GET", //or POST?
   dataType: "jsonp",
   success: function(){alert("ok")},
   error: function(){alert("error")}
})
raja
Ali
Published on 19-Dec-2017 15:59:38
Advertisements