cancel
Showing results for 
Search instead for 
Did you mean: 

Error 401 Unauthorized on accessing Soap-Adapter

Former Member
0 Kudos

Hi,

we have a connection established to our supplier. We send POs with the soap-Adapter over https and we receive an asynchronous xml-response on our soap-adapter. Everything works fine with http but with https our supplier gets an <i>401-unauthorized</i> on return when sending the response. They send the correct username and password. We also tried to put the username and password in the url like <i>.../MessageServlet?...&sap-username=USER&sap-password=PASS</i> but that had no effect. I guess this only works with plain http.

Any ideas why this error occures?

Thanks.

Oliver.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I hope

<i>Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER

• If the error is in XI Adapter, then your port entry should J2EE port 5<System no>

• If the error is in Adapter Engine

–then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.

• May be wrong password for user XIISUSER

• May be wrong password for user XIAFUSER

– for this Check the Exchange Profile and transaction SU01, try to reset the password -Restart the J2EE Engine to activate changes in the Exchange Profile After doing this, you can restart the message</i>

See this link

HTTP* Errors /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi

Regards

Chilla..

Former Member
0 Kudos

Thank you but I already checked this out and everything is ok. They don't even reach our adapter engine.

Former Member
0 Kudos

Hi,

Delete the Adapter Engine Cache and refresh , try

Chilla

Former Member
0 Kudos

Thanks for the answers.

We checked this note but the conditions are all satisfied in our scenario.

Our password always have capital letters.

Where can I delete the Adapter Engine Cache? I couldn't find anything like that. I can only refresh it but not delete it.

Former Member
0 Kudos

Hi,

See also

Note 821026 - AdapterEngine messaging URL returns HTTP 401 under high load

Regards

Chilla..

Former Member
0 Kudos

Thx, but I still could't find where the Adapter Engine Cache can be deleted. It's not mentioned there. Besides, we don't have the problem that it happens sometimes as it is mentioned in this note. This error always occurs. And we have no high traffic at all. It's on our test system.

agasthuri_doss
Active Contributor
0 Kudos

Hi,

1) This might cause due to wrong permissions.

2)Try with this Login XIISUSER

3)Tcode SICF -> Default_host -> sap -> xi

( Check right password for the user id )

4) Check the note 764176

Regards

Agasthuri Doss

Former Member
0 Kudos

Hi,

I logged on with the user XIISUSER and called the TA SICF. And now which password do I have to check? I didn't find any user at this point.

Regards.

Oliver.

Former Member
0 Kudos

Oliver

once you login into SICF then drill down upto this "Default_host -> sap -> xi"

then double click you will get screen with details at bootom you will find userid and password.

regards

sreeram.g.reddy

Former Member
0 Kudos

There is the point "Anonymous Logon Data" where I can enter a user. But there is no user. It's empty. Do I have to enter the XIISUSER right there?

Former Member
0 Kudos

Oliver,

sorry for this i was answering your dbout not sure doss was saying do it but where to find if you need to delete cache you need to go to SXI_CACHE T/c code then select GOTO->AdapterEngine cache. then you will have delte option their just click on delete it.

regard

sreeram.g.reddy

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

Hi Oliver,

The same problem is discussed in SAP Note 856597

The user authentication of the SOAP adapter is not part of the SOAP adapter but of the web container of the J2EE engine. The default authentication setting is defined in the web.xml descriptor file of the SOAP dapter web application. This setting may be modified from Visual Administrator with some restriction.

Regards,

Prateek

Former Member
0 Kudos

Hi,

looks silly, but how about trying the pssword in caps

Regards,

Arvind