cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Sender Adapter 401 Unauthorised

FarihaKazi
Active Contributor
0 Kudos
106

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.

View Entire Topic
samiullah_qureshi
Active Contributor
0 Kudos

Hi Fariha,

Nice to see you on sdn.

BTW which link you are using in browser?

Regards,

Samiullah

FarihaKazi
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

FarihaKazi
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