Skip to Content
avatar image
Former Member

401 HTTP Error - XI Adapter

Hi Experts,

We are trying to develop a scenario with communication between two PIs. Due to technical problems, we have only one PI for development. Because of that, we created a sender and a receiver XI adapter in the same PI.

When we run this scenario the following error occurs:

<?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="">
  <SAP:Category>XIServer</SAP:Category> 
  <SAP:Code area="INTERNAL">UNAUTHORIZED</SAP:Code> 
  <SAP:P1>401</SAP:P1> 
  <SAP:P2>Unauthorized</SAP:P2> 
  <SAP:P3>(See attachment HTMLError for details)</SAP:P3> 
  <SAP:P4 /> 
  <SAP:AdditionalText /> 
  <SAP:Stack /> 
  <SAP:Retry>M</SAP:Retry> 
  </SAP:Error>

Is it possible to send a message from an Integration Engine to itself through XI adapter? Any configuration I should check?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    Feb 22, 2011 at 01:51 PM

    Hi there,

    In order to solve this ensure you have maintained the correct password, which MUST be the same, for all the service user on XI.

    You may check all the places it should be maintained, such as Exchange Profile, SU01, SLDAPICUST, etc..

    See the note below:

    #999962 - PI 7.10: Change passwords of PI service users

    Also ensure that the user has the correct role as per link below:

    http://help.sap.com/saphelp_nwpi71/helpdata/en/9f/d12940cbf2195de10000000a1550b0/frameset.htm

    Regards,

    Caio

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 22, 2011 at 01:51 PM

    Hi,

    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.

    Restart the J2EE Engine to activate changes in the Exchange Profile after doing this, you can restart the message.

    See the below link, it might be helpful to you.

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

    Regards,

    Rajesh

    Edited by: Rajesh_1113 on Feb 22, 2011 7:21 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 22, 2011 at 02:26 PM

    Hi All,

    Is XIAPPLUSER a username? Should I found it at transaction SU01?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I haven't found locked processes.

      I also ran the program rsusr006 and only J233_ADMIN user was in the result.

      I checked this user and found no erro.

  • Feb 22, 2011 at 06:25 PM

    Oi Tiago, tudo bem aí?

    In this case, as the roles are fine and users are not locked, can you

    let me know if this purpose of sending a message to the server itself

    is for testing purposes?

    Also, have you checked if the passwords are the same and whether

    you're pointing to the correct URL on the XI Adapter's configuration?

    Check also in Exchange Profile parameters.

    If possible, please check for other errors, such as the HTTP error, if

    that's the case and send to us for more information.

    Abraço,

    Caio

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 22, 2011 at 08:03 PM

    even if you still get the right username/password/authorizations combination, I'm not sure if it will work. I think the XI protocol is also sending the message id and you can't have two message id's in the same system.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 25, 2011 at 05:20 PM

    Experts,

    We could not find a solution for this problem, so we changed our architecture.

    Thanks everyone for the help.

    Edited by: David Tiago Conceição on Feb 25, 2011 6:21 PM

    Add comment
    10|10000 characters needed characters exceeded