To Deploy the Samples with Eclipse

You can run Java samples in your Eclipse project.
  1. Launch Eclipse by double-clicking the eclipse.exe file and select your workspace.
    Use Eclipse 3.6 or higher.
  2. Create a project.
  3. Select Start of the navigation path File Next navigation step Import End of the navigation path.
    The Import dialog box appears.
  4. Expand General, select Existing Projects into Workspace, and click Next.
  5. Select the Select archive file option and click Browse.
  6. Browse to the sample directory and select SLRESTWebService.zip.
  7. In the Projects area, select com.sap.sl.sdk.consumption.samples and click Finish.
    The com.sap.sl.sdk.consumption.samples project folder appears in the Package Explorer view.
  8. Under com.sap.sl.sdk.consumption.samples.util, open the BaseTest.java file for editing.
  9. Fill in the following parameters with the values corresponding to your installation:
    • CMS_SERVER_URL: the URL exposed by the server hosting the RESTful web services
    • CMS_USER: user name used in your samples to connect to the CMS repository
    • CMS_PASSWORD: password used in your samples to connect to the CMS repository
  10. Under com.sap.sl.sdk.consumption.samples, right-click a sample class and select Start of the navigation path Run As Next navigation step 2 JUnit Test End of the navigation path.
The sample runs, allowing you to find out the features of the BI Semantic Layer RESTful Web Service SDK.