cancel
Showing results for 
Search instead for 
Did you mean: 

Sencha Architect 2.2 with XS OData Services

Former Member
0 Kudos

I would like to say that, i want to implement SAP HANA XS OData  services using with Sencha Architect 2.2.and i create XS services it's working fine on chrome URL"http://54.243.221.65:8000/TestData/StockDataIF.xsodata/Player?$top=3" data coming in xml format.but when i pass the same URL in RestProxy URL and createdAlies odata also.but after build when deploy on tom cat server it show error like "

  1. OPTIONS http://54.243.221.65:8000/TestData/StockDataIF.xsodata/Player?$top=3&%24skip=0&%24top=25 405 (Method Not Allowed) sencha-touch-all.js:21

XMLHttpRequest cannot load http://54.243.221.65:8000/TestData/StockDataIF.xsodata/Player?$top=3&%24skip=0&%24top=25. Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin. "

I am try to solved this problem last couple of days but till now i didn't get any solution Please can you help me what i am doing mistake.

    

     I find some form the problem of  CORS(Cross-Orign Resource Sharing) so can give the permission from SX OData Services.if possible then How?

     Please any body Help me.

View Entire Topic
thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

CORS access to XSODATA services will not be supported until SPS6.  Then we extend the .xsaccess file to allow adding the CORS allow headers to child services.

Until then, you best option is probably to run the sencha website from HANA as well. Assuming your UI is completely client side you just load the HTML/JavaScript for Sencha and your application UI into the HANA repository and run it from there instead of Tomcat.