cancel
Showing results for 
Search instead for 
Did you mean: 

when i try to consume Odata service exposed in hana, getting SAP hana developer account page source code as response in hana trail version

Former Member
0 Kudos

Hi to all,

I am using hana cloud platform trail version.I have created a Odata service. but when we are trying to consume Odata service from .net based web application it returns hana developer account home page source code.Even I tried passing the credentials as authentication parameters, which is not working as expected.Is it restriction to hana trail version or is there a solution? if so please provide the solution.

         

                                                                 Thanking in advance for your valuable inputs.

Regards,

Ravi Teja pampana.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Ravi,

Are you still facing the same issue. if not, then could you provide me the solution as I am also facing similar issues.

Regards,

Shailendra

sreehari_vpillai
Active Contributor
0 Kudos

Hi Ravi,

Are you able to execute and see the data in your browser ?

(please clear your browser cache and try )

Sreehari V

Former Member
0 Kudos

hi sreeehari,

               when i am running the Odata service directly in browser i could see the XML data properly if i logon to the scn.sap account. but when i tried to running this service from an application then it shows the hana developer account login page source code and asking to logon to the account.

regards,

Ravi teja pampana

aadityanigam
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ravi

Here are some links to enable java authentication hope it helps

SAP HANA Cloud Platform: The void between your Datacenter and the C...

Warm regards

aadi

Former Member
0 Kudos

hi aadi,

               thank u so much for your help

regards,

ravi teja

aadityanigam
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ravi Teja

I hope you got the scenario working, if you did i would like to request a couple of tasks from your.

This forum is for sharing knowledge, i would like you to update this thread with the links you found useful and how you went about solving your authentication issue.

And mark this discussion as **answered**.

This will help anyone with the same issue as you to search up this thread and find a solution.

Warm regards

aadi

aadityanigam
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ravi,

This is very interesting can you share the .odata file .

Warm regards

aadi

Former Member
0 Kudos

hi aadi.

         this is my .xsodata file code

service namespace "hihanaxs.services"{

"EPMSAMPLEDATA"."SNWD_BPA_CONTACT" as "Contacts";

}

url that we using in consuming the above odata services

https://s1hanaxs.hanatrial.ondemand.com/s0010858141trial/hihanaxs/hihanaxs/services/contact.xsodata

aadityanigam
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ravi,

I see a perfectly normal oData service here...

I assume you do not see this. Can you paste the html source code you get.

I know if there is an authorization issue you get a SAP ID service "not authorized" message which is an HTML.

Warm regards

aadi

Former Member
0 Kudos

hii aadi,

          before running that odata service first logout from scn.sap account and clear your cookies completely and run the service.

regards,

Ravi teja pampana

aadityanigam
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ravi,

Like i said earlier, i will get a log on screen, if i log out. the account page and the login page look similar when viewed as  HTML code.


Copy the code in an html file and view it in a browser to know exactly what you get.


Depending on what page you see we can proceed with the next step...


Warm regards

aadi

Former Member
0 Kudos

hi aadi,

              I think i am not clear in what i want. here is my question.

i want to run this service successfully in browser even if i was logout from the scn.sap account. so, for this i tried to pass my credentials in the service using rest client, but doesn't worked out. so for this issue i am searching for the solution.

regards,

ravi teja pampana