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.
The first step is to define some initial variables.
Variables
The next step is to make a login request to SAP Business One. If this is successful, two cookies are returned that will be used as credentials for subsequent calls the the Service Layer.
Request
WorkFlow(Variables).Get(BaseURI)/Login
{
"CompanyDB":"WorkFlow(Variables).Get(DBName)",
"UserName":"WorkFlow(Variables).Get(UserName)",
"Password":"WorkFlow(Variables).Get(UserPassword)"
}
Response (Cookies)
Once the login is successful and the the credential cookies are obtained, various requests to interact with database objects are made.
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.