Adding new queries using XML responses

In this case, we are focusing on generating the response using XML for the output type of the service; this is the default value for the output.

We click on Add New Query to start with the first query, and the following window will open:

This form has three main sections, as follows:

  • Query Details: In this section, we set the Query ID (the name of the query), the Datasource: and the SQL that will be executed on it, and the input parameter mappings
  • Result (Output Mapping): Here, we see how the result of the query will be exposed; in this case, we chose the XML format
  • Events: This is an advanced feature ...

Get WSO2 Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.