on 09-09-2014 9:09 AM
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
Hello Bindal,
Have enabled the Role for the application on the front end server. eg: Desktop & Mobile options.
Did you check your a URI with the any plugins in the browser.
Thanks,
SK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.