cancel
Showing results for 
Search instead for 
Did you mean: 

XI Adapter : 401 : Unauthorized error

Former Member
0 Kudos

Hi All,

I am using an XI sender adapter. This adapter receives a response message from a R/3 backend and processes it. The adapter had been configured to use HTTP transport protocol and has the HTTP security level to HTTP.

My problem is that when I am not been able to make my proxy send message to my XI adapter. When I monitor the message at my proxy I get to see an <b>'401 - Unauthorized error'</b> which reads that my user doesnt have access to http://LP0202:50018/sap/xi/engine/. (LP0202 and 50018 is the host name and port number of the ABAP stack respectively).

When I pasted the URL 'http://LP0202:50018/sap/xi/engine/' in <b>IE</b> and hit go, I was prompted for my user name and password. On entering them, I could get access to this URL.

P.S.: I see my username displayed correctly in the inbound message header too.

Kindly help me solve this error.

Thanks,

Keerti

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Error: HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized

Description: The request requires user authentication

Possible Tips:

• 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

See below link

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

Regards

Chilla..

Answers (4)

Answers (4)

former_member192343
Active Contributor
0 Kudos

if it is XI adapter try port 80xx in url

http://LP0202:50018/sap/xi/engine/

or why port is 50018? maybe 51800?

Message was edited by:

Mikhail Koshkin

deviprasad_pothireddy
Active Participant
0 Kudos

The adapter's servlet is protected by default. You must use one of the user names assigned in security role xi_adapter_soap_message for component XISOAPAdapter. Please consult the documentation for Visual Administrator to view and change the security setting.

           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. Please refer to the security documentation for the J2EE engine.

Regards,

Deviprasad.

Former Member
0 Kudos

Keerti,

why are using XI Sender adapter and is their any corresponding Reciver adapter for your response or not.

IS proxy made syncrouse to send response back to your XI adapter?

Regards

Sreeram.G.Reddy

Accenture

Former Member
0 Kudos

Hi Keerti,

Check this blog:

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

Thanks,

Rajeev Gupta