<html>
<head>
<base href="https://docs.jboss.org/author">
<link rel="stylesheet" href="/author/s/en/2172/19/5/_/styles/combined.css?spaceKey=TEIID&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://docs.jboss.org/author/display/TEIID/Web+Services+as+a+Data+Source+Example">Web Services as a Data Source Example</a></h2>
<h4>Page <b>edited</b> by <a href="https://docs.jboss.org/author/display/~shawkins">Steven Hawkins</a>
</h4>
<br/>
<h4>Changes (3)</h4>
<div id="page-diffs">
<table class="diff" cellpadding="0" cellspacing="0">
<tr><td class="diff-unchanged" >h1. Web Services as a Data Source Example <br> <br></td></tr>
<tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">The Web Services as a Data Source example will demonstrate the use of the Web Service ("ws") Translator to call a web service that returns a JSON document. This will demonstrate how to define the model that will transform the JSON document into relational results. <br></td></tr>
<tr><td class="diff-added-lines" style="background-color: #dfd;">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 JSON document. This also demonstrates how to define a transformation of the JSON document into relational results. <br></td></tr>
<tr><td class="diff-unchanged" > <br>{tip} <br></td></tr>
<tr><td class="diff-snipped" >...<br></td></tr>
<tr><td class="diff-unchanged" >{tip} <br> <br></td></tr>
<tr><td class="diff-changed-lines" >This example <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">will use</span> <span class="diff-added-words"style="background-color: #dfd;">uses</span> Twitter as the web service data source and <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">will expose</span> <span class="diff-added-words"style="background-color: #dfd;">exposes</span> it as a view through Teiid. Take note of the VIRTUAL PROCEDURE that is used to define how to transform a JSON document to XML and then into relational results. <br></td></tr>
</table>
</div> <h4>Full Content</h4>
<div class="notificationGreySide">
<h1><a name="WebServicesasaDataSourceExample-WebServicesasaDataSourceExample"></a>Web Services as a Data Source Example</h1>
<p>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 JSON document. This also demonstrates how to define a transformation of the JSON document into relational results.</p>
<div class='panelMacro'><table class='tipMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/author/images/icons/emoticons/check.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><b>dynamicvdb-webservices-to-twitter</b><br/>
All the code discussed in this tutorial is available in the <a href="https://github.com/teiid/teiid-quickstarts/tree/master/dynamicvdb-webservices-to-twitter" class="external-link" rel="nofollow">dynamicvdb-webservices-to-twitter</a> quickstart.
<p>See the README.md for directions to run the quick start.</p></td></tr></table></div>
<p>This example uses Twitter as the web service data source and exposes it as a view through Teiid. Take note of the VIRTUAL PROCEDURE that is used to define how to transform a JSON document to XML and then into relational results. </p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://docs.jboss.org/author/users/removespacenotification.action?spaceKey=TEIID">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://docs.jboss.org/author/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://docs.jboss.org/author/display/TEIID/Web+Services+as+a+Data+Source+Example">View Online</a>
|
<a href="https://docs.jboss.org/author/pages/diffpagesbyversion.action?pageId=55477068&revisedVersion=7&originalVersion=6">View Changes</a>
|
<a href="https://docs.jboss.org/author/display/TEIID/Web+Services+as+a+Data+Source+Example?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>