Show TOC

Connecting to a ProjectLocate this document in the navigation structure

Connect to a project using your authentication credentials.

Context

Procedure

  1. Get the project:
    String projectUriStr = "sap://localhost:19011/ws1/p1“;
    Uri uri = new Uri.Builder(projectUriStr).create();
    project = sdk.getProject(uri, credentials);
    
  2. Connect to the project:
     project.connect(60000);
    Here, 60000 refers to the time, in milliseconds, that the ESP Server waits for the connection call to complete before timing out.