See the topics given below to expose a custom datasource as a data service.
Table of Contents | ||||
---|---|---|---|---|
|
...
- Go to the Deployed Services screen.
- Click the Try this service link for the CustomQueryDataService data service. The TryIt Tool will open with the data service.
- Select the getValuesOp operation.
Enter any values for the input parameters as shown below.
Code Block <Rows xmlns<!--Exactly 1 occurrence--> <xs:column1 xmlns:xs="http://ws.wso2.org/dataservice"> <Row> <C1>R1C1 :param1</C1> <C2>R1C2 :param2</C2>>1</xs:column1> </Row> !--Exactly 1 occurrence--> <Row> <C1>R2C1 :param1</C1> <C2>R2C2 :param2</C2> </Row> </Rows><xs:column2 xmlns:xs="http://ws.wso2.org/dataservice">2</xs:column2>
Click Send to see the result:
Code Block <Rows xmlns="http://ws.wso2.org/dataservice"> <Row> <C1>R1C1 :param1</C1> <C2>R1C2 :param2</C2> </Row> <Row> <C1>R2C1 :param1</C1> <C2>R2C2 :param2</C2> </Row> </Rows>