cancel
Showing results for 
Search instead for 
Did you mean: 

Odata proxy URL not able to access in browser

former_member186566
Active Participant
0 Kudos

Hi,

I'm trying to configure Odata proxy url in SCC of SMP2.3#2.

I have configured the below Odata proxy URL in SCC, pls refer the attached screen shot.

https://sapes1.sapdevcenter.com/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/

I'm able to access the same url by passing my SCN user id and Netweaver gateway password. pls refer the below screen shot.

Name of the connection pool i have created in scc is flight and then when i trying to access the odata by this URL

http://10.203.148.37:8000/flight

Its throwing 404 error, "Error occurred while connecting to the given URL:sapes1.sapdevcenter.com"

Not only this odata url, i have tried with some others too. but not working. Im trying to create hybrid app with hwc based on this Odata proxy.

Please help me to fix this issue.

Regards

Yokesvaran Kumarasamy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create a proxy using same name as Application ID.

Are you using Anonymous user, if yes, then you need to use /public at the end. In your case it would be http://10.203.148.37:8000/(appId)/public.

Regards,

Deepak

former_member186566
Active Participant
0 Kudos

Hi

  • When i open this (http://10.203.148.37:8000/odata/public) url its asking username/passwrod, which credential i have to give. supAdmin/s3pAdmin or credentials of ODATA url?

Please clarify it.

Thanks & Regards

Yokesvaran Kumarasamy

Former Member
0 Kudos

Hi,

You need to give the credentials of ODATA url. I also see from your first screenshot, you have maked as Anonymous access to true, in this case in the connection pool, you need to give the credentials of your backend URL, if you do this then you will not be prompted for credentials.

Regards,

Deepak

former_member186566
Active Participant
0 Kudos

Hi

  • After that in connection pool i have given the username and password for the odata url.
  • When i open the url(http://10.203.148.37:8000/odata/public) in chrome browser, pop up asking to enter credentials then i gave supAdmin & s3pAdmin
  • But it throws the error screen.

Please check this and let me know, wt did i missed.

Thanks & Regards

Yokesvaran Kumarasamy

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Yokesvaran kumarasamy

cross check below steps once:

1. select sec config of type httpAuthenticationLoginModule

     make sure you have following URL, control flag (as required)

2.  remove Nosec fprovider rom authentication, authorization, attribution tab

3. you can create a new domain and assign the particular sec config to this domain

4. create a new app id

     select client SDK : oData

     sec config and respective domain

    uncheck anonymous access

    

note: no need to provide username and password in connection pool

5. you can test the settings in POSTMAN REST CLIENT

enter URL : http://localhost:8000/appid

6.

go to Basic Auth Tab:

    

enter username and password

7. click on send

i hope this will help you.

Rgrds,

Jitendra

Former Member
0 Kudos

Hi,

I am also facing the same issue. Were you able to get around this issue?

@ Jitendra,

I followed your steps as well. But I am getting the message saying

500 Proxy connection [ED1proxy] on Domain [default] not found.


My proxy name is ED1proxy.


Pls help.


Thanks

seenu

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Seenu,

Did you try to run the URL in POSTMAN REST CLIENT?

Can you please share screenshot for the same?

Rgrds,

Jitendra

Former Member
0 Kudos

Hi Jitendra,

After creating a proxy connection in my SCC domain without userid & password, I do not see

the error message 500 Proxy connection [ED1proxy] on Domain [default] not found.


But it is saying UNAUTHORIZED.


Without using proxy, my gateway service URL is working fine with my gateway userid and password. Pls see screen shot below.

But my proxy from POSTMANRESTCLIENT keeps on asking for SCC username & pwd and my gateway userid & password. If I cancel, I get UNAUTHORIZED error. Pls see screen shot below. I used domain as default. So I did not maintain headers. I wanted to give correct userid & passwords, so I did not maintain basic authentication tab.  Also I did not maintain any user id & pwd while creating proxy connection in SCC.

I tried with URL containing /public. Did not work either.

I tried with userid supAdmin@HTTPAUTH, where HTTPAUTH is my SCC security profile. This also did not work. It failed at sup login itself.


I did not know where to give select client SDK : oData while creating an appid. I am using SUP2.2 SP04.

Gateway log in credentials worked fine when testing from gateway URL. but not from SCC proxy .


Thanks

seenu

Former Member
0 Kudos

Hi Seenu,

I believe you are using HTTPAUTH security profile, I want to understand the authentication module configuration for this security profile.

Also, Can you pass Security profile in headers in POSTMAN Rest client and see if it works.

Header :X-SUP-SC

Value : Security Profile Name.

How many security profiles you have in default domain?

Regards,

Abhishek Wajge

Former Member
0 Kudos

Great!! Thanks Abhishek. It worked. Also thanks to Jitendra for detailed steps.

But when I give my gateway userid and pwd in connection pool, it does not consider. It is still asking for userid and pwd when testing from POSTMAN RESTCLIENT. Why???

My idea is to create a new application in SCC by maintaining this proxy and then call that new app id from android through MANUALONBOARDING. so that I do not have to hard code gateway user id & pwd & HTTPAUTH security profile. Where to give these details in SCC??

Pls let me know if I am moving in right direction.

Thanks

seenu