@loopback/docs
Version:
Documentation for LoopBack 4
255 lines (220 loc) • 15 kB
HTML
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/code-themes/sl-theme.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="navbar navbar-inverse navbar-static-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">docs.strongloop.com</a>
</div>
<div id="modules"></div>
</div>
<div class="row">
<div class="col-lg-3 column scroll-spy-target">
<ul class="nav nav-pills nav-stacked">
<div id="versions"></div>
<li class="depth-1">
<a href="#change-log">Change Log</a>
</li>
<li class="depth-2">
<a href="#0-3-7-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-6-loopback-example-soap-calculator-0-3-7-2018-09-19">0.3.7</a>
</li>
<li class="depth-2">
<a href="#0-3-6-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-5-loopback-example-soap-calculator-0-3-6-2018-09-14">0.3.6</a>
</li>
<li class="depth-2">
<a href="#0-3-5-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-4-loopback-example-soap-calculator-0-3-5-2018-09-14">0.3.5</a>
</li>
<li class="depth-2">
<a href="#0-3-4-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-3-loopback-example-soap-calculator-0-3-4-2018-09-14">0.3.4</a>
</li>
<li class="depth-2">
<a href="#0-3-3-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-2-loopback-example-soap-calculator-0-3-3-2018-09-12">0.3.3</a>
</li>
<li class="depth-2">
<a href="#0-3-2-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-1-loopback-example-soap-calculator-0-3-2-2018-09-10">0.3.2</a>
</li>
<li class="depth-2">
<a href="#0-3-1-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-0-loopback-example-soap-calculator-0-3-1-2018-09-10">0.3.1</a>
</li>
<li class="depth-1">
<a href="#0-3-0-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-2-3-loopback-example-soap-calculator-0-3-0-2018-09-08">0.3.0</a>
</li>
<li class="depth-3">
<a href="#bug-fixes">Bug Fixes</a>
</li>
<li class="depth-3">
<a href="#features">Features</a>
</li>
<li class="depth-2">
<a href="#0-2-3-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-2-2-loopback-example-soap-calculator-0-2-3-2018-08-25">0.2.3</a>
</li>
<li class="depth-2">
<a href="#0-2-2-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-2-1-loopback-example-soap-calculator-0-2-2-2018-08-24">0.2.2</a>
</li>
<li class="depth-2">
<a href="#0-2-1-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-2-0-loopback-example-soap-calculator-0-2-1-2018-08-15">0.2.1</a>
</li>
<li class="depth-1">
<a href="#0-2-0-2018-08-08">0.2.0</a>
</li>
<li class="depth-3">
<a href="#features-1">Features</a>
</li>
<li class="depth-1">
<a href="#loopback-example-soap-calculator">@loopback/example-soap-calculator</a>
</li>
<li class="depth-2">
<a href="#overview">Overview</a>
</li>
<li class="depth-2">
<a href="#setup">Setup</a>
</li>
<li class="depth-2">
<a href="#start-the-tutorial">Start the Tutorial</a>
</li>
<li class="depth-3">
<a href="#steps">Steps</a>
</li>
<li class="depth-2">
<a href="#or-try-it-out">or Try it out</a>
</li>
<li class="depth-3">
<a href="#generate-the-example-using-cli">Generate the example using CLI</a>
</li>
<li class="depth-2">
<a href="#license">License</a>
</li>
</ul>
</div>
<div class="col-lg-9 col-lg-offset-3 column" data-spy="scroll" data-target=".scroll-spy-target" data-offset="0">
<div class="readability">
<a name="change-log"></a><h1>Change Log <small>v0.3.7</small></h1>
<p>All notable changes to this project will be documented in this file.
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
<p><a name="0.3.7"></a></p>
<a name="0-3-7-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-6-loopback-example-soap-calculator-0-3-7-2018-09-19"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.3.6...@loopback/example-soap-calculator@0.3.7">0.3.7</a> (2018-09-19)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.3.6"></a></p>
<a name="0-3-6-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-5-loopback-example-soap-calculator-0-3-6-2018-09-14"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.3.5...@loopback/example-soap-calculator@0.3.6">0.3.6</a> (2018-09-14)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.3.5"></a></p>
<a name="0-3-5-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-4-loopback-example-soap-calculator-0-3-5-2018-09-14"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.3.4...@loopback/example-soap-calculator@0.3.5">0.3.5</a> (2018-09-14)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.3.4"></a></p>
<a name="0-3-4-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-3-loopback-example-soap-calculator-0-3-4-2018-09-14"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.3.3...@loopback/example-soap-calculator@0.3.4">0.3.4</a> (2018-09-14)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.3.3"></a></p>
<a name="0-3-3-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-2-loopback-example-soap-calculator-0-3-3-2018-09-12"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.3.2...@loopback/example-soap-calculator@0.3.3">0.3.3</a> (2018-09-12)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.3.2"></a></p>
<a name="0-3-2-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-1-loopback-example-soap-calculator-0-3-2-2018-09-10"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.3.1...@loopback/example-soap-calculator@0.3.2">0.3.2</a> (2018-09-10)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.3.1"></a></p>
<a name="0-3-1-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-3-0-loopback-example-soap-calculator-0-3-1-2018-09-10"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.3.0...@loopback/example-soap-calculator@0.3.1">0.3.1</a> (2018-09-10)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.3.0"></a></p>
<a name="0-3-0-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-2-3-loopback-example-soap-calculator-0-3-0-2018-09-08"></a><h1><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.2.3...@loopback/example-soap-calculator@0.3.0">0.3.0</a> (2018-09-08)</h1>
<a name="bug-fixes"></a><h3>Bug Fixes</h3>
<ul>
<li>remove extra imports for mixin dependencies (<a href="https://github.com/strongloop/loopback-next/commit/35b916b">35b916b</a>)</li>
<li>soap example (<a href="https://github.com/strongloop/loopback-next/commit/9b790ed">9b790ed</a>)</li>
</ul>
<a name="features"></a><h3>Features</h3>
<ul>
<li><strong>service-proxy:</strong> add service mixin (<a href="https://github.com/strongloop/loopback-next/commit/fb01931">fb01931</a>)</li>
</ul>
<p><a name="0.2.3"></a></p>
<a name="0-2-3-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-2-2-loopback-example-soap-calculator-0-2-3-2018-08-25"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.2.2...@loopback/example-soap-calculator@0.2.3">0.2.3</a> (2018-08-25)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.2.2"></a></p>
<a name="0-2-2-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-2-1-loopback-example-soap-calculator-0-2-2-2018-08-24"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.2.1...@loopback/example-soap-calculator@0.2.2">0.2.2</a> (2018-08-24)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.2.1"></a></p>
<a name="0-2-1-https-github-com-strongloop-loopback-next-compare-loopback-example-soap-calculator-0-2-0-loopback-example-soap-calculator-0-2-1-2018-08-15"></a><h2><a href="https://github.com/strongloop/loopback-next/compare/@loopback/example-soap-calculator@0.2.0...@loopback/example-soap-calculator@0.2.1">0.2.1</a> (2018-08-15)</h2>
<p><strong>Note:</strong> Version bump only for package @loopback/example-soap-calculator</p>
<p><a name="0.2.0"></a></p>
<a name="0-2-0-2018-08-08"></a><h1>0.2.0 (2018-08-08)</h1>
<a name="features-1"></a><h3>Features</h3>
<ul>
<li><strong>example-soap-calculator:</strong> add soap web services integration example (<a href="https://github.com/strongloop/loopback-next/commit/9a8d57c">9a8d57c</a>), closes <a href="https://github.com/strongloop/loopback-next/issues/1550">#1550</a></li>
</ul>
<a name="loopback-example-soap-calculator"></a><h1>@loopback/example-soap-calculator</h1>
<p>Integrating a Calculator SOAP web service with LoopBack 4.</p>
<a name="overview"></a><h2>Overview</h2>
<p>This example project shows how to integrate a SOAP web service with LoopBack 4
and expose its methods through the REST API server. Acceptance and Integration
tests are provided.</p>
<p>Before each step, you will be presented an image containing the artifacts that
you will be creating in blue.</p>
<p><img src="https://loopback.io/pages/en/lb4/imgs/loopback-example-soap-calculator_figure1.png" alt="soap-calculator-overview"></p>
<a name="setup"></a><h2>Setup</h2>
<p>You'll need to make sure you have some things installed:</p>
<ul>
<li><a href="https://nodejs.org/en/">Node.js</a> at v8.9 or greater</li>
</ul>
<p>Lastly, you'll need to install the LoopBack 4 CLI toolkit:</p>
<pre><code class="lang-sh">npm i -g @loopback/cli</code></pre>
<a name="start-the-tutorial"></a><h2>Start the Tutorial</h2>
<p>Follow the following steps to start buiding your application:</p>
<a name="steps"></a><h3>Steps</h3>
<ol>
<li><a href="https://loopback.io/doc/en/lb4/soap-calculator-tutorial-web-service-overview.html">SOAP Web Service Overview</a></li>
<li><a href="https://loopback.io/doc/en/lb4/soap-calculator-tutorial-scaffolding.html">Scaffold the Application</a></li>
<li><a href="https://loopback.io/doc/en/lb4/soap-calculator-tutorial-add-datasource.html">Add a data source</a></li>
<li><a href="https://loopback.io/doc/en/lb4/soap-calculator-tutorial-add-service.html">Add a Service</a></li>
<li><a href="https://loopback.io/doc/en/lb4/soap-calculator-tutorial-add-controller.html">Add a controller</a></li>
<li><a href="https://loopback.io/doc/en/lb4/soap-calculator-tutorial-make-service-available.md">Register the service</a></li>
<li><a href="https://loopback.io/doc/en/lb4/soap-calculator-run-and-and-test.md">Run and Test the application</a></li>
</ol>
<a name="or-try-it-out"></a><h2>or Try it out</h2>
<p>If you'd like to see the final results of this tutorial as an example
application, follow these steps:</p>
<a name="generate-the-example-using-cli"></a><h3>Generate the example using CLI</h3>
<p>1.Run the <code>lb4 example</code> command to select and clone the soap-calculator
repository:</p>
<pre><code class="lang-sh">$ lb4 example
? What example would you like to <span class="hljs-built_in">clone</span>? (Use arrow keys)
todo: Tutorial example on how to build an application with LoopBack 4.
todo-list: Continuation of the todo example using relations <span class="hljs-keyword">in</span> LoopBack 4.
hello-world: A simple hello-world Application using LoopBack 4.
<span class="hljs-built_in">log</span>-extension: An example extension project <span class="hljs-keyword">for</span> LoopBack 4.
rpc-server: A basic RPC server using a made-up protocol.
> soap-calculator: An example on how to integrate SOAP web services.</code></pre>
<p>2.Jump into the directory and then install the required dependencies:</p>
<pre><code class="lang-sh"><span class="hljs-built_in">cd</span> loopback4-example-soap-calculator</code></pre>
<p>3.Finally, start the application!</p>
<pre><code>```sh
$ npm start
<span class="hljs-built_in">
Server </span>is running on<span class="hljs-built_in"> port </span>3000
```</code></pre><p>Feel free to look around in the application's code to get a feel for how it
works.</p>
<a name="license"></a><h2>License</h2>
<p>MIT</p>
</div>
<div class="intentionally-left-blank"></div>
</div>
</div>
<script src="js/vendor/jquery-1.10.1.min.js"></script>
<script src="js/vendor/jquery.scrollTo-1.4.3.1.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>