[Download] | [Documentation Home] | [Release Note]
WSO2 Data Services Server provides the functionality which can simply create a data service for a given WSDL.
Go through the following steps to create a simple contract first data service.
Click on Contract First link in left menu under Manage/Services/Add/Data Service. Create Contract Service wizard will be appear. You can either provide a wsdl file which is located in your local file system or you can provide a wsdl which is hosted online.
Once you select the wsdl file it will appear as in following figure.
Click on 'Upload' button after you have select the file. If the wsld is uploaded successfully you will get the success message as follows.
Created data service will be list in the services listing page, as a work in progress service. Since we cannot specify the data source configuration and the sql query in the wsdl, the created service will be deployed as a WIP service. Therefore the wsdls, and the tryit links will not be provided in the service list page.
Click on 'Edit Data Service Wizard' to fill the dummy data which has generated in the data service.
Following image shows the dummy data which has filled in the add data source page. Change them according to the required information. Same steps has to be followed for the query page as well to change the dummy sql query.
Once you have enter all the details click on 'Finish' button, this will deploy the service and list down the service in the service list page as a active service.
Sample wsdl which we used to create the service is showing below.
WSDL operation section.
Created data service with dummy values as follows.