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.
Difference between revisions of "Swordfish Documentation: Flight Reservation Tutorial"
Line 1: | Line 1: | ||
==Flight Reservation Tutorial== | ==Flight Reservation Tutorial== | ||
− | This is a short tutorial that you can | + | ===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. | ||
+ | ===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== | ==Prerequisites== | ||
<ul> | <ul> | ||
<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>ODE | + | <li>Swordfish Runtime Framework</li> |
+ | <li>Swordfish Tooling</li> | ||
+ | <li>ODE bundels from the Swordfish update site</li> | ||
</ul> | </ul> | ||
Line 19: | Line 25: | ||
<br>To create the service and invoke the service provider: | <br>To create the service and invoke the service provider: | ||
<ol> | <ol> | ||
− | <li>Create the service provider using the code-first approach.</li> | + | <li>Create the service provider using the code-first approach (for the Flight Reservation).</li> |
<ol> | <ol> | ||
<li>Download the <tt>org.eclipse.swordfish.samples.bpel.reservationservice</tt> from | <li>Download the <tt>org.eclipse.swordfish.samples.bpel.reservationservice</tt> from | ||
Line 32: | Line 38: | ||
<li>Call a service using the Web Service Explorer.</li> | <li>Call a service using the Web Service Explorer.</li> | ||
</ol> | </ol> | ||
− | <li>Create a service provider using the</li> | + | <li>Create a service provider using the WSDL-first approach (For Payment Processing)</li> |
+ | |||
</ol> | </ol> | ||
Revision as of 05:21, 30 July 2009
Contents
Flight Reservation Tutorial
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.
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
- Eclipse Galileo (Eclipse 3.5) build or later. The examples described here are based on Eclipse 3.5.
- Swordfish Runtime Framework
- Swordfish Tooling
- ODE bundels from the Swordfish update site
Getting Started
Before you start, you need to download and install Swordfish Tooling in Eclipse IDE. Once you've done that create a target platform. For instructions, see http://help.eclipse.org/galileo/index.jsp, under Swordfish User guide
Creating and Running a Service
Service Development
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).
? @SME: What is the code-first approach?
Creating and Invoking a Service Provider
To create the service and invoke the service provider:
- Create the service provider using the code-first approach (for the Flight Reservation).
- Download the org.eclipse.swordfish.samples.bpel.reservationservice from http://odeintegration.googlecode.com/svn/trunk/org.eclipse.swordfish.samples.bpel.reservationservice/
- Copy the sample implementation.
- Start the service provider.
- Display WSDL(1) and save it in the file system.
- Upload WSDL(1) into the service registry.
- Call a service using the Web Service Explorer.
- Create a service provider using the WSDL-first approach (For Payment Processing)
The sample project contains the following folders:
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: