Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Sap netwever gatway With SAP Ui5 Framework

Hello,

I am creating one SAP UI5 Application where i am calling one SAP netwever gatway webservice ,When i am calling this webservice from ddesktop browser it is running correctly and giving correct response data , but for that i have to append proxy at start of url, but when i am runnnig same application in tablet browser or other pcs browser in lan network then it is giving http request failed with status code 0

below is my code

var oTable =  this.getView().byId("idSalesTable");

  var oDataModel =  new sap.ui.model.odata.ODataModel("proxy/http/p142.coil.sap.com:8080/sap/opu/odata/sap/ZRTPDOWNLOAD_SRV", true);

  oDataModel.setCountSupported( false);

  oDataModel.setDefaultBindingMode(sap.ui.model.BindingMode.TwoWay);

  oDataModel.read("/ES_ORDER_HDR?$filter=ITourid%20eq%20%27S0000001429%27&$expand=ORDER_HDR2ITM,ORDER_HDR2COND&$format=json", null,null, true, function(oData, oResponse){

  myBusyDialog.close();

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

  demoJSONModel.setData(oData);

  alert(JSON.stringify(oData));

  oTable.setModel(demoJSONModel);

  oTable.bindRows("/results");

   }, function(response){

   myBusyDialog.close();

  

        alert("Read failed"+JSON.stringify(response));

   }

  );

I have also attached screenshots when i am running in localhost webview and apache tomcat local server

Thanks

ApacheServer.png (34053 B)
proxy.png (29231 B)
Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question