cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Sender Adapter 401 Unauthorised

former_member190389
Active Contributor
0 Kudos

Hi,

I am using a sender HTTP Adapter of PI 7.1

when I use the link in browser it gives me 401 unauthorised error.

but when i use the test tool from one of the blogs it gives me the response properly.

Accepted Solutions (1)

Accepted Solutions (1)

samiullah_qureshi
Active Contributor
0 Kudos

Hi Fariha,

Nice to see you on sdn.

BTW which link you are using in browser?

Regards,

Samiullah

former_member190389
Active Contributor
0 Kudos

Hi Sami,

Same here.

Actually I am using the link which comes as output in URL field when we test using HTTP client.

The same link I am using in a java code to connect which is giving me 401 error .

Also the same link when i copy paste in browser give same 401 error.

This scenario used to work in PI 7.0 but now we migrated it to PI 7.1.

Former Member
0 Kudos

Hi,

I hope you are using PI 7.1 access to test the http url.

Can you please share the format of URL that you are testing?

Regards,

Farooq

former_member190389
Active Contributor
0 Kudos

The link is

http://<host>:<port>/sap/xi/adapter_plain?namespace=http%3A//rediff/ProjectSTAR/Vendor&interface=SI_...

This link when I copy paste in browser leads to a login popup asking for credentials.

When I enter the proper credentials , It gives 401 error .

Same happens when I use it in a Java code for HTTP connection.

samiullah_qureshi
Active Contributor
0 Kudos

Check the follwoing sap note. I may be helpful:-

Note 839803 - Plain HTTP Adapter: Calling the HTTP service

Former Member
0 Kudos

Hi Fariha,

I suggest you use a Network packet Sniffer / Grabber and analyze the HTTP Request from the Java Program as well as the Tester and Browser. If you spot a difference in the Request (which i am sure you will), then we can proceed from there.

Refer the below Weblog for more details:

/people/sap.user72/blog/2004/12/17/some-handy-http-tools

Cheers,

Varun

Answers (3)

Answers (3)

stefan_grube
Active Contributor
0 Kudos

You know the difference between HTTP GET and HTTP POST?

former_member190389
Active Contributor
0 Kudos

Hi Stefan,

My HTTP Client uses HTTP POST method and is able to connect through.

Also my Java code is set to use same POST method but still 401.

former_member190389
Active Contributor
0 Kudos

Issue resolved.

My password was having character '#' which requires escaping to %23..

0 Kudos

Hello!

Please check the note below according to your system version:

#999962 - PI 7.10: Change passwords of PI service users

#936093 - XI 7.0: Changing the passwords of XI service users

#721548 - XI 3.0: Changing the passwords of the XI service users

Hope it helps.

Regards,

Caio Cagnani

former_member190389
Active Contributor
0 Kudos

The passwords are all proper.

Any further help will be appreciated

Former Member
0 Kudos

Hi,

The problem is the user credentials, check the user credentials

Check this link

http://pcsupport.about.com/od/findbyerrormessage/a/401error.htm

(OR) check SAP OSS Note 856897

Regards

Ramesh

former_member190389
Active Contributor
0 Kudos

Please check your reply before posting it