-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ODataModel issue about to response 501 Not Implemented #13
Comments
I might be wrong, but I'm guessing this is the OPTIONS method being sent by the browser in the case of a cross-domain access request, and it's Northwind's (valid) response saying it doesn't support that method. If you run via a proxy or with relaxed browser security restrictions (for example), this won't occur - see http://jsbin.com/wevac/6/edit for example. |
Like @qmacro already said, the problem is that the Northwind Service doesn't seem to support Cross-Domain Requests. An example using cors-anywhere: http://jsbin.com/qozusiwu/1/edit |
Correct , use this URL to add proxy over it. var oModel = new sap.ui.model.odata.ODataModel("proxy/http/services.odata.org/Northwind/Northwind.svc"); |
IE11 needs ASCII 10 for a new line. 
 is not sufficient. Change-Id: I2eaefab7000cc1790c1706666d845b5bcf4000d1 BCP:1570780235
Merge pull request #13 from D068664/master fix popup on mobile devices
I've just commented on the issue OData/ODataSamples#29 and perhaps we get http://service.odata.org fixed. |
…geParameters, filter, sort PS1: red integration test and POC w.r.t. PATCH PS2: review comments, first steps towards bIgnoreKeptAlive PS3: improve integration tests; POC to make all green PS4: TODOs for bKeepCacheOnError, move oOldCache.setKeepAlive(false), add creation row, ODataModel#hasPendingChanges, etc. PS5: add changes to items table; drop ODataModel#hasPendingChanges again PS6: #setKeepAlive after #setProperty; no need to mark POSTs anymore; TODOs PS7: bKeepCacheOnError PS8: PP BTH; review and strip down integration tests PS9: PP BTH; red integration test and POC for bKeepCacheOnError PS10: PP BTH; TDD to pass information about bKeepCacheOnError to #fetchCache PS11: PP BTH; task #4 PS12: PP BTH; task #5 (half way) PS13: task #5 completed PS14: PP BTH; task #5 fixed PS15: PP BTH; task #6,7,8 PS16: PP BTH; task #3 completed, all old integration tests green again PS17: PP BTH; task #10 pass keep alive information in Context#doSetProperty PS18: PP BTH; fix file indentation PS19: PP BTH; task #11 PS20: PP BTH; task #12 ODataBinding PS21: PP BTH; task #12 ODataParentBinding PS22: PP BTH; task #12 ODataParentBinding code review PS23: PP BTH; task #13 PS24: PP BTH; task #14 PS25: comments by KTH, URE PS26: PP BTH; comments by TCH, URE; BCP: 2170236485 PS27: comments by TCH PS28: rebased PS29: ESLint, indentation PS30: PP BTH; red integration test, POC, and TDD for not passing bIgnoreKeptAlive to dependent bindings; comments by KTH, URE PS31: remove "isA"; TODOs PS32: PP BTH; kept-alive elements and bKeepCacheOnError PS33: PP BTH; try to address merging of PATCHes; comments by KTH, TCH PS34: TDD; comments by MUH, TCH PS35: avoid cleanup of oFetchCacheCallToken PS36: JSDoc PS37: MIT & OPA for FlexibleColumnLayout app PS38: comments by KTH PS39: rebased PS40: rebased PS41: comment by KTH Change-Id: I8e133826e622a48756539077bbd92f16c4fbac86 JIRA: CPOUI5ODATAV4-1105 JIRA: CPOUI5ODATAV4-1230 JIRA: CPOUI5ODATAV4-1231 JIRA: CPOUI5ODATAV4-1232 JIRA: CPOUI5ODATAV4-1233 JIRA: CPOUI5ODATAV4-1234 JIRA: CPOUI5ODATAV4-1235 JIRA: CPOUI5ODATAV4-1236 JIRA: CPOUI5ODATAV4-1237 JIRA: CPOUI5ODATAV4-1238 JIRA: CPOUI5ODATAV4-1239 JIRA: CPOUI5ODATAV4-1240 JIRA: CPOUI5ODATAV4-1241 JIRA: CPOUI5ODATAV4-1247 JIRA: CPOUI5ODATAV4-1260 JIRA: CPOUI5ODATAV4-1261 JIRA: CPOUI5ODATAV4-1262 JIRA: CPOUI5ODATAV4-1266
I use the example with ODataModel From https://openui5.hana.ondemand.com/#docs/guide/ODataModel.html,
var oModel = new sap.ui.model.odata.ODataModel("http://services.odata.org/Northwind/Northwind.svc/");
Run it, it is load metadata with http request method options, as a result response 501 not implemented.
Please tell me there are ways to change the http request method?
The text was updated successfully, but these errors were encountered: