cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP response contains status code 401 with the description Unauthorized

Former Member
0 Kudos

Hi

We are facing an error in SOAP to RFC Scenario. This is the first time, we are calling an RFC from XI Quality system.

We are facing an error while calling the RFC from XI. This error looks to be occuring while invoking the RFC from XI and the mapping program also executing successfully as per SXMB_MONI.

We are using the user:XIAPPLUSER for invoking the RFC from XI.

Please find the error message :

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Call Adapter

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:Category>XIServer</SAP:Category>

<SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>

<SAP:P1>401</SAP:P1>

<SAP:P2>Unauthorized</SAP:P2>

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText><!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> <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="3" color="#000000"><b>&nbsp;&nbsp;Authentication did not succeed.</b></font></td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>&nbsp;&nbsp;Details:</b></font></td> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>&nbsp;&nbsp;No details available</pre></font></td> </tr> </body> </html></SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>HTTP response contains status code 401 with the description Unauthorized Error when sending by HTTP (error code: 401, error text: Unauthorized)</SAP:Stack>

<SAP:Retry>N</SAP:Retry>

</SAP:Error>

Please provide your precious inputs ASAP, since its very high priority.

Thanks,

Ramesh

Accepted Solutions (0)

Answers (4)

Answers (4)

prateek
Active Contributor
0 Kudos

Hi Ramesh,

This could solve ur problem. Check out

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

Regards,

Prateek

Former Member
0 Kudos

Hi Shankar,

We have done the changes to the communocation channel and activated in XI Quality system.

We have entered the SAP Quality system with the same user: XIAPPLUSER. It was executed successfully. So it looks th user:XIAPPLUSER is working fine.

Is there any other method for checking the username:XIAPPLUSER has proper access rights ?

Thanks,

Ramesh

Former Member
0 Kudos

Hi,

Have you transported the objects from TST to PROD recently? If so, you need to change the paramters in communication again. It will be lost during transport.

Check the user ID password given in receiver communication channel and ensure, it is valid.

Regards,

Jai Shankar

Former Member
0 Kudos

Hey

make sure that the port ur using is correct,check ur port in SMICM and use that port

thanx

ahmad

Message was edited by:

Ahmad