bw2:sbo_sl_v24

SAP Business One Service Layer using Bizweaver v2.4

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

Variables

Get Cookies

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

Login Request

  • Sample URI (copy & paste)
WorkFlow(Variables).Get(BaseURI)/Login
  • Sample Login Body Code (copy & paste)
{
"CompanyDB":"WorkFlow(Variables).Get(DBName)",
"UserName":"WorkFlow(Variables).Get(UserName)",
"Password":"WorkFlow(Variables).Get(UserPassword)"
}

Response (Cookies)

Login Response

Use Cookies

Once the login is successful and the the credential cookies are obtained, various requests to interact with database objects are made.

Request

Request Content

  • Sample Cookies Code (copy & paste)
B1SESSION:WorkFlow(WebServiceClient_callLogin).Get(B1SESSION)
ROUTEID:WorkFlow(WebServiceClient_callLogin).Get(ROUTEID)

Sample of Response Content

Content Response

Sending Data to the Service Layer

Information on sending data through the Service Layer is found here.

bw2/sbo_sl_v24.txt · Last modified: 2020/12/15 12:34 by akoehler