bgmulinari / B1SLayer

A lightweight SAP Business One Service Layer client for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logged in but keep getting "Authorization header not found"?

KwokHoiMan opened this issue · comments

After logging on, the callback shows that the session is established, but on the next request the response is "authorisation header not found".

This repeats until the .NET console program crashes.

image

I am using SAP v10 SP2311 64-bit.

Any advice appreciated!

Hi, @KwokHoiMan. Can you share a the code snippet that reproduces your problem, please?

In case anyone comes up with this error, the problems comes from including the /Login in the service layer root uri

Example:

This is WRONG:
new SLConnection("https://sapserver:50000/b1s/v1/Login", "CompanyDB", "manager", "12345");

This is CORRECT:
new SLConnection("https://sapserver:50000/b1s/v1", "CompanyDB", "manager", "12345");