- WSO2 Developer’s Guide
- Fidel Prieto Estrada Ramón Garrido Lázaro
- 395字
- 2021-07-08 10:05:57
Data Service Project
Data Service Project will be used to add data services that allow us to access multiple data sources and expose their data in a very simple way. To create this kind of project, we will start from the Developer Studio dashboard, as usual, and follow these steps:
- Click on Data Service Project and add the name and location of the project.
- Click on Next and enter the Maven information for the project, that is, Group Id, Artifact Id, and Version. If needed, we can specify the parent project as well, and then click on Finish:

- Now, we have added the new data service project to the workspace:

Now, we can create the data services needed for our application.
To add a new data service, go to the Developer Studio dashboard and click on Data Service.
Then, follow these steps:
- Choose Create a New Data Service and click on Next.
- In this step, we will introduce some general information related to the service:
- Data Service Name*: This is the desired name.
- Data Service Group: This is a name for a group, if we would like to group some data services. This is not mandatory and hence we leave it blank.
- Data Service Namespace: This specifies the namespace for our service.
- Description: We can add a description here.
- Save Data Service in: The Data Service Project where we can locate the data service.

- Click on Next. Now, we will add the data source information for our data service. There are many ways to create data sources, but according to our experience, the best practice is to create the data sources in the WSO2EI and create references from data services. This way, we can have just one point of data source configuration that provides many advantages. Thus, we will add the following information:
- Data Source Id: This is a name for the datasource.
- Data Source Type: As we discussed earlier, we choose Carbon Data Source here, which means that we reference a data source already created in the system.
- Data Source Name: This is the name of the data source we are referencing.

- Click on Finish and the data service will be added:

We can start building our data service by double-clicking on the file. We are now done with the data service edition, and we will go deeper into it in the later chapters.
推薦閱讀
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- 編程的修煉
- Android和PHP開發最佳實踐(第2版)
- 架構不再難(全5冊)
- Python數據可視化之Matplotlib與Pyecharts實戰
- Jenkins Continuous Integration Cookbook(Second Edition)
- MySQL入門很輕松(微課超值版)
- ArcGIS for Desktop Cookbook
- Unity&VR游戲美術設計實戰
- C++從入門到精通(第6版)
- Python預測分析與機器學習
- Python 3快速入門與實戰
- 3D Printing Designs:The Sun Puzzle
- AngularJS by Example
- Advanced C++