Using OData Palette Activities
Follow the below steps to test OData service using OData Palette activities:
- Procedure
- In the Project Explorer, expand the Processes directory and double-click Service.bwp.
- In the left-hand tree of the Debug Configuration wizard, expand BusinessWorks Application, and select BWApplication.
- 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.
- 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].
- 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
- Create an OData connection shared resource and copy the endpoint URL http://localhost:9964/odata_375.application/Service in the Root URL field.
- While the service is running, click Load Metadata to load the metadata of the service.
- 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.
ResultYou can now test the operations implemented in the OData service.