Versions Compared

Key

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

See the topics given below to expose a custom datasource as a data service.

Table of Contents
maxLevel3
minLevel3

...

  1. Go to the Deployed Services screen.
  2. Click the Try this service link for the CustomQueryDataService data service. The TryIt Tool will open with the data service.
  3. Select the getValuesOp operation.
  4. 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>
  5. 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>