Skip to Content
0
Former Member
Sep 09, 2014 at 08:09 AM

Sap netwever gatway With SAP Ui5 Framework

19 Views

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

Attachments

ApacheServer.png (34.1 kB)
proxy.png (29.2 kB)