Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Swordfish Documentation: Flight Reservation Tutorial"

(Service Development and Service Orchestration)
 
(69 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Flight Reservation Tutorial==
+
==Flight Booking Tutorial==
<pre>Everything in this section is still in draft state. It will be subject to review and editing by the Swordfish team members.</pre>
+
 
 
===What this tutorial covers===
 
===What this tutorial covers===
This is a short tutorial that you can use to learn more about Swordfish. The use case covered in this tutorial involves creating and running a service provider using the Swordfish Runtime and Tooling components.  
+
This tutorial describes detailed steps for generating services using Swordfish, creating BPEL process using BPEL Editor and deploying and executing the BPEL process within ODE engine.
 +
In this tutorial we will create 2 Swordfish services, Flight Reservation Service and Payment Processing Service. We will create an Orchestration Service called Flight Booking Service which
 +
will invoke the 2 Swordfish services based on logic defined in a BPEL process.
  
 
===What it does not cover===
 
===What it does not cover===
 
This tutorial assumes that the user is familiar with the Eclipse IDE and Java programming. This tutorial does not provide an introduction to the Eclipse IDE, Eclipse runtime projects or to the Java programming language.
 
This tutorial assumes that the user is familiar with the Eclipse IDE and Java programming. This tutorial does not provide an introduction to the Eclipse IDE, Eclipse runtime projects or to the Java programming language.
+
 
 
==Prerequisites==
 
==Prerequisites==
 
<ul>
 
<ul>
 +
<li>Java 6 runtime enviornment.</li>
 
<li>Eclipse Galileo (Eclipse 3.5) build or later. The examples described here are based on Eclipse 3.5.</li>
 
<li>Eclipse Galileo (Eclipse 3.5) build or later. The examples described here are based on Eclipse 3.5.</li>
 
<li>Swordfish Runtime Framework</li>
 
<li>Swordfish Runtime Framework</li>
 
<li>Swordfish Tooling</li>
 
<li>Swordfish Tooling</li>
<li>ODE bundels from the Swordfish update site</li>
+
<li>ODE bundles from the Swordfish update site</li>
 
</ul>
 
</ul>
  
 
==Getting Started==
 
==Getting Started==
Before you start, you need to download and install Swordfish Tooling in Eclipse IDE.  
+
Before you start, do the following:
Once you've done that create a target platform. For instructions, see http://help.eclipse.org/galileo/index.jsp, under Swordfish User guide
+
<ol>
 +
<li>Download and install Swordfish Tooling in Eclipse IDE from the [http://soaswordfishdemo.googlecode.com/svn/trunk/SOADemoSite/  Swordfish Update Site]. </li>
 +
<li>Create a target platform. <br></li>
 +
</ol>
 +
<p>For instructions, see <i>Swordfish User Guide</i>, section "Getting Started with Swordfish" within the Eclipse IDE Help.</p>
  
==Creating and Running a Service Provider and Consumer==
 
[[Image:bpel_sample2.png]]
 
  
===Service Development===
+
==Workflow==
This topic contains instructions on how to create a service provider with the code-first approach (Flight reservation) and the WSDL-first approach (Payment processing).<br>
+
Basically the workflow for creating and deploying a service involves the following main tasks.
? @SME: What is the code-first approach?
+
<center>
====Creating and Invoking a Service Provider and Consumer====
+
[[Image:Flight_reservation_tutorial_1.png‎]]
<br>To create the service and invoke the service provider:
+
</center>
<ol>
+
<li>Create the service provider using the code-first approach (for the Flight Reservation).</li>
+
<ol>
+
<li>Download the <tt>org.eclipse.swordfish.samples.bpel.reservationservice</tt> from
+
<tt>http://odeintegration.googlecode.com/svn/trunk/org.eclipse.swordfish.samples.bpel.reservationservice/</tt></li>
+
 
<br>
 
<br>
The sample project contains the following folders:<br>
+
==Service Development and Service Orchestration==
[[Image:bpel_sample2.png]]
+
The main set of tasks for the ''Swordfish Flight Reservation Tutorial'' can be broken down into two main areas as shown in the following figure:
<li>Copy the sample implementation.</li>
+
<li>Start the service provider.</li>
+
<li>Display WSDL(1) and save it in the file system.</li>
+
<li>Upload WSDL(1) into the service registry.</li>
+
<li>Call a service using the Web Service Explorer.</li>
+
</ol>
+
<li>Create a service provider using the WSDL-first approach (for the Payment Processing).</li>
+
 
<ol>
 
<ol>
<li></li>
+
<li>First, you need to create service providers, as described here: [[Swordfish_Documentation:_Service_Development|Service Development]].</li>
<li></li>
+
<li>Next, you deploy the service as described here: [[Swordfish_Documentation:_Service_Orchestration|Service Orchestration]].</li>
</ol>
+
 
 
</ol>
 
</ol>
 +
<center>
 +
[[Image:Service_devt_orchestration1‎.png‎]]
 +
</center>
  
===Service Orchestration===
 
Add a short description of what you plan to do & why here.
 
  
====Creating and Invoking a BPEL Process====
 
To create and invoke a BPEL process:
 
<ol>
 
<li></li>
 
<li></li>
 
</ol>
 
 
-------------
 
-------------
 
[[Swordfish_Documentation |Swordfish Documentation Home]] <br/>
 
[[Swordfish_Documentation |Swordfish Documentation Home]] <br/>
 
[[Swordfish | Swordfish Wiki Home]] <br/>
 
[[Swordfish | Swordfish Wiki Home]] <br/>

Latest revision as of 07:07, 10 September 2009

Flight Booking Tutorial

What this tutorial covers

This tutorial describes detailed steps for generating services using Swordfish, creating BPEL process using BPEL Editor and deploying and executing the BPEL process within ODE engine. In this tutorial we will create 2 Swordfish services, Flight Reservation Service and Payment Processing Service. We will create an Orchestration Service called Flight Booking Service which will invoke the 2 Swordfish services based on logic defined in a BPEL process.

What it does not cover

This tutorial assumes that the user is familiar with the Eclipse IDE and Java programming. This tutorial does not provide an introduction to the Eclipse IDE, Eclipse runtime projects or to the Java programming language.

Prerequisites

  • Java 6 runtime enviornment.
  • Eclipse Galileo (Eclipse 3.5) build or later. The examples described here are based on Eclipse 3.5.
  • Swordfish Runtime Framework
  • Swordfish Tooling
  • ODE bundles from the Swordfish update site

Getting Started

Before you start, do the following:

  1. Download and install Swordfish Tooling in Eclipse IDE from the Swordfish Update Site.
  2. Create a target platform.

For instructions, see Swordfish User Guide, section "Getting Started with Swordfish" within the Eclipse IDE Help.


Workflow

Basically the workflow for creating and deploying a service involves the following main tasks.

Flight reservation tutorial 1.png


Service Development and Service Orchestration

The main set of tasks for the Swordfish Flight Reservation Tutorial can be broken down into two main areas as shown in the following figure:

  1. First, you need to create service providers, as described here: Service Development.
  2. Next, you deploy the service as described here: Service Orchestration.

Service devt orchestration1.png



Swordfish Documentation Home
Swordfish Wiki Home

Back to the top