on 10-13-2017 3:09 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
96 | |
9 | |
8 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.