Skip to Content
avatar image
Former Member

How to call php webservice url in SAPUI5?

I had tried various methods for this but i didn't get this one, can anyone give proper solution for this? Actually, I know how to call web service by using ajax calls, but whenever I tried to pass my url as below, it gives me error,

onInit: function() {



type: "POST",


accepts:{ text:"application/json" },

success: function(oResData){

if(!oResData) {"No Success"); }

else{" Success"); } },

error: function(){"unsuccessful json call"); } });

var oModel=new sap.ui.model.json.JSONModel();

sap.ui.getCore().setModel(oModel); }

The above code gives me error:

error: Fiori Architectural guidelines: ESLint(sap-no-hardcoded-url): Hardcoded (non relative) url found.

Kindly suggest me.....

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer