Skip to Content

(401) Unauthorized - when I tried to list Users via SAPB1 Hana Service Layer

Hi Experts!

I got a problem when when I tried to list Users via Service Layer.

"The remote server returned an error: (401) Unauthorized. Invalid session."

My Environment:

SAP Business One Hana 9.3 PL00

I have got a SessionId via cockpit login and I used a Restlet_client to send my request by POST.

If i want to login with Restlet_client, the response is (401) Unauthorized - "Fail to get the bound database instance from SLD."

If I failed to express myself clearly, please let me know! I can provide more information.

Thank you very much!

Estanislao

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 16, 2017 at 11:15 AM

    Hi Estanislao. What do you mean by "I have got a SessionId via cockpit login"?

    To login in Service Layer you should call the /Login endpoint or get the Connection Context via the UI API (if you have a COM Addon).

    Please take a look at the login function of the code shared here

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2017 at 11:12 AM

    Hi Estanislao,

    Where did you manage to install 9.3 PL00 HANA? on Amazon AWS?

    Regards

    Silvio

    Add comment
    10|10000 characters needed characters exceeded