Skip to Content
0

SAP Business One Cloud System Landscape Directory Service API - Cannot use GET calls after Login .

Jul 10, 2017 at 09:22 AM

66

avatar image

Hi,

1. In "SAP Business One Cloud System Landscape Directory Service API" I can execute , in C#, the POST REST call, "https://c3cc.b1clouds.com:443/sld/sld.svc/LogonBySystemUser", and get a return value of "True".

2. But if I immediately call the next REST GET call to list all customers in C# e.g. https://c3cc.b1clouds.com:443/sld/sld0100.svc/Customers", I get an "Unauthorized" HttpStatus error.

3. I have passed into the Request Header, the following:

client.DefaultRequestHeaders.Add("SBO-SLD-APP-ID", "xxxxxx"); client.DefaultRequestHeaders.Add("Accept", "*/*, application/json"); client.DefaultRequestHeaders.Add("AcceptLanguage", "en-US,en;q=0.5"); client.DefaultRequestHeaders.Add("JSESSIONID", JS_ID);

The "JSESSIONID" value is obtained when I called the "https://c3cc.b1clouds.com:443/sld/sld.svc/LogonBySystemUser"

4. Within Chrome POSTMAN, there is no issue. I can make the REST GET calls, to list customers, tenants etc, without any issue so far.

Please help, and provide any links to C# or VB.NET code that calls "SAP Business One Cloud System Landscape Directory Service API"

Thank you.

Chong Chin

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers