cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP response contains status code 401 - Unauthorized

Former Member
0 Kudos

Hello all,

I have configured a simple scenario like this:

RFC Adapter -> XI -> File Adapter

I developed a report which triggers the aRFC message with a CALL FUNCTION DESTINATION IN BACKGROUND TASK

Then I am able to see my messages in transaction SXMB_MONI in the XI Integration server but I get the error message mentioned in the subject of this thread.

When I look at the trace of the message I get this info:

- <Trace level="1" type="B" name="CL_XMS_PLSRV_IE_ADAPTER-ENTER_PLSRV">

<Trace level="3" type="T">Channel for adapter engine: RFC</Trace>

- <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP">

<Trace level="2" type="T">Get logon data for adapter engine (SAI_AE_DETAILS_GET): af.xid.uscmxist</Trace>

<Trace level="3" type="T">URL = http://uscmxist:50000/MessagingSystem/receive/AFW/XI</Trace>;

<Trace level="3" type="T">User = XIISUSER</Trace>

<Trace level="3" type="T">Cached = X</Trace>

<Trace level="3" type="T">Creating HTTP-client</Trace>

<Trace level="3" type="T">HTTP-client: creation finished</Trace>

<Trace level="3" type="T">Security: Basic authentication</Trace>

<Trace level="3" type="T">Serializing message object...</Trace>

<Trace level="3" type="T">HTTP-client: sending http-request...</Trace>

<Trace level="3" type="T">HTTP-client: request sent</Trace>

<Trace level="3" type="T">HTTP-client: Receiving http-response...</Trace>

<Trace level="3" type="T">HTTP-client: response received</Trace>

<Trace level="3" type="T">HTTP-client: checking status code...</Trace>

<Trace level="3" type="T">HTTP-client: status code = 401</Trace>

<Trace level="3" type="T">Deserializing message object...</Trace>

<Trace level="3" type="System_Error">HTTP-client: error response= <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Error Report</title> <style> td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active </style> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>&nbsp;&nbsp;401 &nbsp Unauthorized</b></font></td> </tr> <tr bgcolor="#3F73A3"> <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td> <td height="23"><img width=1 height=1 border=0 alt=""></td> <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.40&nbsp;</b></font></td> </tr> <tr bgcolor="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td> </tr> </table> <br><br><br><br><br><br> <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>&nbsp;&nbsp;Access Denied!</b></font></p> <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table><tr><td valign="top"><b>&nbsp;Details:</b></td><td valign="top"><PRE>No details available</PRE></font></td></tr></table></font></p> </body> </html></Trace>

<Trace level="3" type="T">HTTP-client: closing...</Trace>

</Trace>

</Trace>

</Trace>

Does anyone have a clue about this error?

Thanks in advance

Vasco

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Vasco,

go to the <b>XI installation guide</b> and check creating:

RFC Destination - <b>INTEGRATION_DIRECTORY_HMI</b>

you specify the user XIISUSER over there

go <u><b>exactly</b></u> step by step with the installation guide (every "Enter" matters)

and change the password for this RFC dest

installation guide:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/95d7d490-0301...

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

one more thing:

you can also check these properties in the exchangeprofile:

http://<host:port>/exchangeProfile

com.sap.aii.integrationserver.serviceuser.name

com.sap.aii.integrationserver.serviceuser.pwd

pwd is the password for this user

Regards,

michal

Former Member
0 Kudos

Hello Michal,

Sorry for the (very) late reply. Yes, this was exactly the problem.

Thanks,

Vasco