Using OData Palette Activities

Follow the below steps to test OData service using OData Palette activities:

Procedure

  1. In the Project Explorer, expand the Processes directory and double-click Service.bwp.
  2. In the left-hand tree of the Debug Configuration wizard, expand BusinessWorks Application, and select BWApplication.
  3. Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the check box next to <OData_Sample>.application.
  4. Click Debug. This runs the sample in Debug mode.
    The Console view is opened and shows engine messages similar to: Started BW Application [ODataTestServiceSample.application:1.0].
  5. In the Console view, press Enter to display the prompt: <>@BWEclipseAppNode>
    Enter the OSGi command lendpoints. This lists the information about the list of EntitySets that the CSDL contains and URL to access metadata information for the OData service. [Application Name] : odata_375.application

    [Endpoint Type] : ODATA

    [Endpoint URL] : http://localhost:9964/odata_375.application/Service/$metadata

    [Reverse Proxy URL] : null

    [ENTITYSETS] : Products, Categories

  6. Create OData connection shared resource and copy the endpoint URL http://localhost:9964/odata_375.application/Service in the Root URL field.
  7. While the service is running, click Load Metadata to load the metadata of the service.
  8. To test the service, stop the application and create a new process with OData palette activities.
    Note: Set the Accept Headers in the Input tab of activity as application/json or application/xml as per Response Client Format field of the OData service.

Result

You can now test the operations implemented in the OData service.