Hello folks,
I was trying to create an ODATA feed from sap netweaver gateway and consume that data from my SENCHA application.....
So at first i created the entity set from Netweaver Gateway Service Builder and started that from(/iwfnd/maint_service)....then i was able to read entity sets and entity using sencha odata proxy...but the problem came at the time of posting data(Create,Update).....Chrome is saying "Failed to load resource: the server responded with a status of 403(Forbidden)"....but when i tried to create and update from Firefox Rest Extention,it's working fine....
so this is my code
Ext.define('App.model.TravelAgency', { | ||
extend: 'Ext.data.Model', | ||
config: { | ||
fields: [ | ||
{ name: "ID" }, | ||
{ name: "Name" }, | ||
], | ||
proxy: { | ||
type: 'odata', | ||
url: 'http://192.168.253.114:8000/sap/opu/odata/sap/Z_DEB_TEST_SRV/Tests', | ||
withCredentials: true, | ||
} | ||
} | ||
}); | ||
Ext.application({ | ||
launch: function () { | ||
var model = Ext.create('App.model.TravelAgency', { | ||
ID: 'ABC', | ||
Name: 'ABCDEFGH' | ||
}); | ||
model.save(); | ||
} | ||
}); |
any plz help me guys