Skip to Content
0
May 20, 2020 at 11:00 AM

404 - Not found IN XSJS FROM HANA STUDIO

193 Views

Hi Experts

I wanted to try a simple XS project. Here are my coding as follow

.xsaccess

{
     "exposed" : true,  
              
     "authentication" :                                            
            {
               "method": "Form"   
            },
  
     "cache_control" : "must-revalidate", 


     "cors" :                      
            {
             "enabled" : true
            }, 
                     
     "enable_etags" : false,


     "force_ssl" : false,
  
     "prevent_xsrf" : true
}

.xsapp is empty

test 1.xsjs

$.response.contentType = "text/html";
var output;
output = "Hello World! This is a demo of simple SAP HANA Extended Services Application. Stay tuned to learn more.";
$.response.setBody(output);

now if i check XS engine, it is up and running but when i am trying to run "test 1.xsjs" the below error appears.

404 - Not found

We could not find the resource you're trying to access.
It might be misspelled or currently unavailable. ?

Possible solution

Please check the URL or try again later.
In case of ongoing problems please contact your system administrator

Please help