Due to a known issue do not use JDK1.8.0_151 with WSO2 products. Use JDK 1.8.0_144 until JDK 1.8.0_162-ea is released.
This documentation is for WSO2 Data Services Server version 3.5.1. For the latest documentation, see the documentation for WSO2 Enterprise Integrator.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Access the data service using CRUD operations

Open a command prompt execute the following CURL commands using CRUD operations:


Note that you the user should have privileges to perform CRUD operations on this databasethe database. For Oracle databases, the user should be the schema owner. If not, the OData service will not work properly.

  • To get the service document:

    Code Block
    curl -X GET -H 'Accept: application/json' https://localhost:9443/odata/{data_service_name}/{data_source_id}
  • To get the metadata of the service:

    Code Block
    curl -X GET -H 'Accept: application/xml' https://localhost:9443/odata/{data_service_name}/{data_source_id}/$metadata
  • To read details from the ACCOUNT table:

    Code Block
    curl -X GET -H 'Accept: application/xml' https://localhost:9443/odata/{data_service_name}/{data_source_id}/ACCOUNT