Skip to Content
avatar image
Former Member

HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized

I am trying to execute the sample flight demo application scenario 'Check Flight Seat Availability'.

In SXMB_MONI I see the following error.

<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:Stack>HTTP response contains status code 401 with the description Unauthorized Error while sending by HTTP (error code: 401, error text: Unauthorized)</SAP:Stack>

HTTP Service is active.

This error is in Flight Agency client.

Regards,

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • May 04, 2006 at 12:11 AM

    Hi Samatha,

    Please check the J2EE Port and also Roles assigned to the XIAPPLUSER

    For more`

    ERR: HTTP_RESP_STATUS_CODE_NOT_OK - 401 Unauthorized

    Hope this helps

    Regards,

    Moorthy

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2006 at 07:55 AM

    Hi Samatha,

    You might have to pass logon credentials with your request. e.g. if you are using HTTP adapter, url would be something like:

    http://<hostname>:<port>/sap/xi/adapter_plain?namespace=<namespace>&interface=<interface>&service=<service>&party=<party>&agency= &scheme=<scheme>&QOS=<QOS>&sap-user=<XI_user_ID>&sap-password=<password>&sap-client=<SAP_Client>&sap-language=<language>

    Check out the article:

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8

    Hope this helps,

    Riyaz

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 04, 2006 at 08:29 AM

    Hi Samantha,

    Please check this similar thread..

    HTTP_RESP_STATUS_CODE_NOT_OK 404 Error

    regards,

    Prashanth

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      Have you resolved this issue? We are also getting the similar errors.

      i am implmeneting OSS Note 821026.

      Please let me know the details on how you have resolved this.

      Regards

      Chandu

  • Oct 12, 2007 at 02:34 PM

    Hi Samantha,

    I experienced a similar problem, trying to build a sample application.

    After some time I realized that the problem was due to the fact that I was connecting a NW04s (7.0) system to a NW04 (6.40) one.

    The important issue is that here the treatment of passwords has changed completly. Everything is explained in the following note:

    Note 1023437 - ABAP syst_Downwardly incompatible passwords (since NW2004s)

    The solution was to set the parameter (TRX rz10)

    login/password_downwards_compatibility

    to the value "4"

    (for details see: http://help.sap.com/saphelp_nw2004s/helpdata/de/22/41c43ac23cef2fe10000000a114084/frameset.htm)

    I hope that helps (at least I was completely unaware of that situation)

    Sincerely steve

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi All,

      I am getting the similar issue when I am implementing a file-to-file scenario. When the " .txt " file is uploaded in XI it should move to ABAP . But instead of that, it is getting archived. The error information there is - "HTTP response contains status code 401 with the description Unauthorized " . Please help me from where this kind of error occurs, what is the root cause of this problem.