Quantcast
Channel: SCN : All Content - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 750

Sap netwever gatway With SAP Ui5 Framework

$
0
0

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


Viewing all articles
Browse latest Browse all 750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>