cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy UI5 app on launchpad with XSOdata service connecting to HANA DB?

tridwip
Participant
0 Kudos

Hi,

I need to develop a UI5 app with XSOdata service and deploy it to the client's launchpad. We have created and exposed the XSOdata service successfully. The app is running fine when deployed to HANA cloud platform from webide. Now when I deployed it to the gateway, its showing "no data" on launchpad with error "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://domain.com:PORT' is therefore not allowed access.".

I checked the domain(https://domain.com:PORT) of the HANA system from where the XSOdata is coming and its showing "XSEngine is up and running" but when it is done with the gateway url where launchpad is running its giving "404 not found".

Then I followed the link :"http://www.saplearners.com/how-to-consume-hana-xs-odata-service-using-sap-netweaver-gateway/" and tried to create a RFC connection from frontend i.e.gateway but its not showing the XSOdata service on the system alias.

Now I want to know do I need to create an odata service on gateway or it can redirect when the call is needed to connect to the HANA system?

More specifically the role that the Cloud Connector is playing in webide should be performed to pass the authorization parameters when the app is deployed on gateway too by RFC or something else isn't it? Please guide me to end to end deployment and prerequisites to deploy UI5 app with XSOdata on client's launchpad.

Accepted Solutions (1)

Accepted Solutions (1)

tridwip
Participant
0 Kudos

Hi,

The ABAPer guy created a CDS view based on the HANA views and I created a oData service on it and now its working on the launchpad.

Answers (1)

Answers (1)

junwu
Active Contributor

you need web dispatcher to redirect the call to hana

tridwip
Participant
0 Kudos

Hi,

Thanks for the reply! I was searching for the solution while I just found a guide stating exactly what you have suggested here and found the note 1855097 as a configuration guide for XS Engine. I have sent the note to the basis team. As I could not understand much from the note, for my clarification: Why do we need to configure the dispatcher for XS Engine separately? Is it the correct note to follow?

junwu
Active Contributor
0 Kudos

not just for xs engine, any service not hosted in the same server where you ui5 app is will need the web dispatcher.

that note is not that relevant

tridwip
Participant
0 Kudos

thanks for the reply!

In that case can you help me with some link or guide to configure web dispatcher for XSEngine please?