This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
bw:sbo_hana_sl [2019/11/08 14:18] runger [Get Cookies] |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== SAP Business One Service Layer (HANA) ===== | ||
| - | Accessing SAP Business One on HANA 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. | ||
| - | |||
| - | ==== Get Cookies ==== | ||
| - | |||
| - | **Variables** | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | **Request** | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | * Sample URI (copy & paste) | ||
| - | |||
| - | < | ||
| - | WorkFlow(Variables).Get(BaseURI)/ | ||
| - | </ | ||
| - | |||
| - | * Sample Login Body Code (copy & paste) | ||
| - | |||
| - | < | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | **Response (Cookies)** | ||
| - | |||
| - | {{ bw: | ||
| - | |||
| - | |||
| - | ==== Use Cookies ==== | ||
| - | |||
| - | **Request** | ||
| - | |||
| - | {{: | ||
| - | |||
| - | * Sample Cookies Code (copy & paste) | ||
| - | < | ||
| - | B1SESSION: | ||
| - | ROUTEID: | ||
| - | </ | ||
| - | |||
| - | **Sample of Response Content** | ||
| - | |||
| - | {{: | ||
| - | |||
| - | ==== Sending Data to the Service Layer ==== | ||
| - | [[Sending Data to the Service Layer]] | ||