cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member197733
Contributor
0 Kudos

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

0 Kudos

Ralph,

En el curso que hice en Argentina de integración vimos que podíamos acceder a http://[HOST]:8000/sap/sbo/portal/?site=/sap/sbo/cockpit y luego acceder a los servicios directamente. Esto era producto que el cockpit generaba la cookie al solicitar su login.

El POST al Login tambien quise hacerlo y el resultado es el mismo (401) Unauthorized - "Fail to get the bound database instance from SLD."

Saludos,

Estanislao

former_member197733
Contributor
0 Kudos

Nop, there is a misconception.

the http://[HOST]:8000/sap/sbo/portal/ is a login page for the B1 Extreme Application Framework and not the Service Layer.

Please take a look at Working with SAP Business One Service Layer in the PartnerEdge or in the samples here in the community

0 Kudos

Ok. Igual como te comenté el Logia arroja el mismo error.

El documento lo tengo leído.

Saludos

0 Kudos

Ralph,

Fue solucionado con soporte con un Update sobre el SLD.

Gracias.

Answers (1)

Answers (1)

SilvioCanha
Explorer
0 Kudos

Hi Estanislao,

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

Regards

Silvio

0 Kudos

Hi Silvio,

On premise.

Regards