cancel
Showing results for 
Search instead for 
Did you mean: 

WebIDE - Consuming an OData Channel - Credentials not working ?

Former Member
0 Kudos

Hi everyone !

I'm working on a project which needs to consume an OData service from a 7.1 SAP Gateway system. I've followed the steps for installing a HANA Connector to the system, and exposure of the service seems to be fine. I added it under the "destinations" tab of my cockpit as well. When I do a "check connection", I have no error.

The service is up, and I can access it via an url without a problem.
The problem I have is when I right-click on my project in WebIDE to add an OData Service, when I specify the name of the service and the path, it asks for credentials, and endlessly loops over my credentials (which were already specified when I configured both the connector and my cockpit anyway).

Does anybody have an idea about what the issue could be here ? Everything seems alright on every part (connector, web IDE, backend system) but this credential thing seems a bit odd.

Thanks by advance,
Max

Accepted Solutions (1)

Accepted Solutions (1)

vijay_vital
Active Participant
0 Kudos

Enter WebIDE credentials.

The exercise in openSAP or SAP course should have a document that explains this. Follow the document like a bible and you cannot go wrong.

Vijay

Former Member
0 Kudos

Hi Vijay,

I have tried entering my WebIDE credentials, and it did not work. They're the same as for HCP,
right ? As in iXXXXXXtrial and corporate password ?

vijay_vital
Active Participant
0 Kudos

can you confirm if you are doing the openSAP course?

Former Member
0 Kudos

I was not, now I am looking at the part about data binding.

vijay_vital
Active Participant
0 Kudos

Check the following settings

Former Member
0 Kudos

I have tried using Northwind's service and have encountered no problem, neither in the configuration part nor in the consumption

Answers (5)

Answers (5)

Former Member
0 Kudos

Alright,

The problem apparently came from the fact that I didn't specify which client I intended to use, with property "sap-client" in the cockpit. Now it works fine.

Thank you very much for your help and for your time !

Regards,
Max

vijay_vital
Active Participant
0 Kudos

awesome. sometimes its good to go through the config one by one when you cannot see the system.

good luck with your design

vijay_vital
Active Participant
0 Kudos

On the HANA Cloud Connector, can you check if the account user is P11231XX (without Trial) where as the service is with P11231XXTrial

Former Member
0 Kudos

The account user is indeed my user account without Trial

Former Member
0 Kudos

There is "new". I have tried setting up the path directly into neo-app.json and in the manifest, now the dialog doesn't pop up but unsurprisingly, I have a 403 error : forbidden.

vijay_vital
Active Participant
0 Kudos

Hello Max,

Are you using a cloud connector to hook up you PC to the HCP?

Regards

Vijay

Former Member
0 Kudos

Hi,

I am indeed using a cloud connector. I have configured it as specified here : https://help.hana.ondemand.com/help/frameset.htm?db9170a7d97610148537d5a84bf79ba2.html

vijay_vital
Active Participant
0 Kudos

Starting from basics,

Serivce is okay and you get a 200 ok message in gateway.

when creating project from template, on the data connection under service URL you see Norwind and you back end systems that you configured.

if you select norwind, and select / you see all services.

if you select your back end system you get the authentication error.

you have also tried coding directly on the neo-app.json

Does this summarise the issue?

Former Member
0 Kudos

It does summarize the issue. I have been able to consume directly from my service via my web browser, too.

vijay_vital
Active Participant
0 Kudos

Data binding can be done as per screen shot below

vijay_vital
Active Participant
0 Kudos

you and also do using data binding using EDMX file.

Be sure you change it to .XML in WebIDE

Regards

Vijay

Former Member
0 Kudos

Thanks for all of your answers Vijay,

I have tried binding in the project wizard directly as you suggested, but I still have the same issue. My service is available, and exposed, as with "check connection" I have no problem.

What do you mean when you say using EDMX files ? Do you mean trying to use local data binding ?

vijay_vital
Active Participant
0 Kudos

Hello Max,

Can you go to the back end system (gateway) run transaction /IWFND/MAINT_SERVICE

Check ICF node is green

System Alias is populated

If they are run the test "SAP Gateway Client" button.

On the SAP Gateway Client Click execute to see the HTTP response to be 200.

Can you confirm if this works?

Vijay

Former Member
0 Kudos

Hi Vijay,

Thank you for you answer.
I did as you suggested, the service is up, the system alias populated, and upon trial I get a 200 response code

Former Member
0 Kudos

Hi Max,

You van provide your credentials in destinations than it will not prompt for the credentials when you add the Odata Service.

thanks

Viplove

Former Member
0 Kudos

Hi Viplove,

Thank you for your answer. As I said, I provided my credentials in destinations, this is why I am surprised it asks for them anyway ! And even more surprised that they don't work.

Former Member
0 Kudos

Hi Max,

Can you provide the screenshot where its asking password(popup) so that i can check what credentials exactly it is asking(which system)

thanks

Viplove

Former Member
0 Kudos

Yes of course,
Here you go :

Former Member
0 Kudos

Hi Max,

Its not asking the credentials of backend(gateway) its asking credentials of your webide trial account. Actually it might be that you are not allowing cookies in your browser.

thanks

Viplove

Former Member
0 Kudos

Thanks for your helpful answer !
It still does not work though... I've set my browser to accept all cookies from "[*.]hanatrial.ondemand.com", but the dialog still pops up. I've tried entering my credentials for the HCP, and it still doesn't work.

Former Member
0 Kudos

Hi Max ,

Can you match your destination with the below configuration:

And also can you try northwind service (public service) with above shown configurations and see if you face same issues with northwind also

thanks

Viplove

Former Member
0 Kudos

Thanks again for your answer,

With Northwind I face no particular problem and can consume the data freely.

Former Member
0 Kudos

Hi max,

Strange .. i am thinking the additional properties are making these type of issues , check that you have these additional properties:

thanks

Viplove

Former Member
0 Kudos

Thanks for you answer,

I have tried editing the properties as you suggested, unfortunately the dialog still pops up...
And still doesn't accept my credentials.