Hi,
I am trying to log in to the B1 HANA service layer using example from the
"Working with SAP Business One Service Layer" document.
POST https://<Server Name/IP>:<Port>/b1s/v1/Login
{"CompanyDB": "US506", "UserName": "manager", "Password": "1234"}
When I run in a browser
https://MyServer:50000/b1s/v1/Login
with no parameters a prompt comes up and asks for UserName and Password but not CompanyDB which seems to confirm that the service layer is running and responding.
In Postman if fails with "Authorization header not found."
When I add the parameters with valid credentials:
https://MyServer:50000/b1s/v1/Login
{"CompanyDB": "SBODEMOUS", "UserName": "manager", "Password": "manager"}
In the Browser the user/password prompt comes up as before:
In PostMan the response is
{
"error" : {
"code" : 301,
"message" : {
"lang" : "en-us",
"value" : "Invalid session."
}
}
}
It seems like this is simple and should work and I am missing something obvious.
Thanks for any suggestions.
Mel