Creating an Outbound REST Service Based on an OpenAPI Compliant JSON File

This topic describes how to create an outbound REST service. You do this by importing an OpenAPI compliant JSON file or URL, which describes an external REST API endpoint. The following figure shows how the JSON file or URL import creates an outbound proxy business service, a Web Service, and other artefacts.

The surrounding text describes how design time artefacts are created when importing a JSON file.

To create an outbound REST service in Web Tools

  1. In Web Tools, create and open a new workspace.

  2. Start the New Objects Wizard.

    This image shows the New Objects Wizard icon.
  3. Select Web Service and click Start.

    This image shows the Web Service icon.

    The WSDL/JSON Import Wizard appears.

  4. Choose File or URL.

    If you choose URL:

    This image shows the URL option.
    1. Selecting the URL radio button enables the URL input text box.
    2. Enter the URL from which you want to download a JSON schema file.
      Note: If the endpoint must be trusted, you must import the root certificate into the ses\applicationcontainer_internal server's trust store.

    If you choose File:

    1. Click the upload icon and choose the file to use in the import.

      This image shows the upload icon.
    2. Choose the file and click Open.

      This image shows the selected file and Open button.
  5. Click Next.

    The file contents are validated. The validation results are displayed after completion.

    This image shows the validation results.

    If your file is corrupt and cannot be parsed, processing errors are displayed.

    This image shows processing errors.

    Sometimes, it could be a logical (not syntactical) schema error.

    This image shows warnings.

    The Validation Results describe:

    • Objects to be created
    • Warnings from parsing document
    • Errors from parsing document
      • By-passed paths: not processed
      • Unresolved server address: substituted with "hostname:port"
      • Failures: why the errors occurred and what you can do to resolve them
    Note: When large JSON files are imported, Web Tools may sometimes timeout while the SWToolsObjMgr keeps processing. Due to the large JSON file, there might be thousands of records being inserted into the repository, which will take time. Sometimes the Web Tools UI might become unresponsive. This issue will be resolved in a future release.

    When the JSON schema has been parsed, the Admin Data for the user interface is created and inserted into the database.

  6. Click the Submit button.

    This creates the repository artifacts and populates the Admin Data. An XML file is also generated. In the future, if the Admin data gets deleted or changed, you can use this XML file to import artefacts into the Outbound REST Services UI in Siebel.

    Note: If you decide not to deliver the workspace with the newly created repository objects, you must manually delete the new outbound REST service in the Outbound REST Services UI in Siebel. This prevents stale service records remaining in the database and helps you avoid naming conflicts during future imports.
    This image shows the files downloaded during the import process.

    Here is a list of downloaded files:

    • Log file for the import process
    • XML file containing the Admin Data for the Outbound REST Service
    • JSON file imported

    Here is a sample generated XML file.

    This image shows a sample generated XML file.

    Here is a list of log files, which you can use for troubleshooting, in case of failures:

    • For Java related issues, see ses/applicationcontainer_internal/logs/restoutbound.log
    • For Java Heap Size error, which occurs if you import a large JSON file, see ses/applicationcontainer_internal/logs/siebeljbs.log

      If you get this error, you need to increase the Java Heap Size for ses/applicationcontainer_internal tomcat.

    • For debug logs, see Setting the Log Level for REST Outbound Services.
    • For Siebel OM related errors, see SWToolsMgr_enu.logs
    • For information about Siebel Server log files, see Siebel System Monitoring and Diagnostics Guide.
  7. To view the new outbound REST service, do the following:

    1. Open an application, such as Call Center.
    2. Navigate to Administration - Web Services.
    3. Navigate to Outbound REST Services.

    The following Outbound REST Services screen shows the names for the Service, the Endpoint URLs, and operations. Here, the input for Filter Service can be provided against each operation. For more information, see Overview of the REST Outbound Filter Service.

    The surrounding text describes the contents of the Outbound REST Services screen.
  8. Click Finish to close the Web Service Wizard.

    This image shows the Finish button.
  9. The created objects are listed in the Developer Workspace. You need to deliver the workspace to use the newly created artefacts at runtime.

    This image shows the list of objects and their object types.