This is an old revision of the document!
Accessing SAP Business One using the Service Layer is a two-step process. The first step (Login) responds with two cookies. These cookies are then used in any subsequent web service calls in the current processing cycle. In Bizweaver v2.4, the configuration of the web service steps is quite manual.
Variables
Request
WorkFlow(Variables).Get(BaseURI)/Login
{
"CompanyDB":"WorkFlow(Variables).Get(DBName)",
"UserName":"WorkFlow(Variables).Get(UserName)",
"Password":"WorkFlow(Variables).Get(UserPassword)"
}
Response (Cookies)
Request
B1SESSION:WorkFlow(WebServiceClient_callLogin).Get(B1SESSION) ROUTEID:WorkFlow(WebServiceClient_callLogin).Get(ROUTEID)
Sample of Response Content
Information on sending data through the Service Layer is found here.