The Web Services as a Data Source example demonstrates the use of the Web Service ("ws") Translator to call a web service that returns a XML document. This also demonstrates how to define a transformation using XMLTABLE and XMLPARSE to translate the XML Document into relational results.
All the code discussed in this tutorial is available in the webservices-as-a-datasource quickstart.
See the README.md for directions to run the quick start.
This example will deploy the CustomerRESTWebSvc.war, which represents the web service datasource that Teiid will access. This was done so that no external resource is required in order to execute the quick start. The dynamic vdb, web service-vdb.xml, defines the VIEW using DDL, in order to read and transform the XML document returned from the web service.