Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Online banking with Apache Geronimo and Axis2, Part 1: The service: Laying down the framework

Nicholas Chase (ibmquestions@nicholaschase.com), Freelance writer, Backstop Media, LLC
Nicholas Chase has been involved in Web site development for companies such as Lucent Technologies, Sun Microsystems, Oracle, and the Tampa Bay Buccaneers. Nick has been a high school physics teacher, a low-level radioactive waste facility manager, an online science fiction magazine editor, a multimedia engineer, an Oracle instructor, and the chief technology officer of an interactive communications company. He is the author of several books, including XML Primer Plus .

Summary:  Dive deep into the intricacies of using Apache Geronimo and Axis2 to build a complex Web services application. This three-part tutorial series walks you through building an example online banking Web service, documenting each step of the process so new users can quickly grasp the concepts and build a complete Web service and Web-interface client that connects to and communicates with the Web service. In the first installment, you get acquainted with the example Web service and the Web services that use WSDL, build and compile a WSDL file, and test and deploy it on Geronimo.

View more content in this series

Date:  21 Mar 2006
Level:  Intermediate PDF:  A4 and Letter (330 KB | 27 pages)Get Adobe® Reader®

Activity:  7731 views
Comments:  

Before you start

This three-part tutorial series is for you if you're interested in building a large Web service using Apache Geronimo and Apache Axis2. Learn how to build a WSDL file with several operations relevant to an online banking system. Then compile the WSDL file into a Web service using Axis2, and deploy and test it on Geronimo.

About this series

The example you create in this series is an online banking Web service. The Web service, created using WSDL and Axis2, will contain an Apache Derby database used to save transaction data, account data, and bill-paying data. You'll deploy Axis2 as a Web application on Apache Geronimo, and the new Web service will be an Axis archive deployed within Axis2. There are several possible commands in online banking that you'll use in the example, including view accounts, search transactions, transfer funds, and bill paying. You'll also create a client Web application to connect to the Web service to query information and perform transactions -- basically to call the operations implemented in the Web service.

In this first installment of the three-part series, you build the online banking Web service's infrastructure in WSDL. In Part 2, you build the Web service's functionality by storing account and transaction information in an Apache Derby database. Finally, in Part 3, you create a fully functional client-Web-based user interface (UI) to the Web service where a user can log in, do online banking, and log out.


About this tutorial

This tutorial starts by introducing the example Web service and exposing the various Web services using WSDL. You use Axis2 to convert the WSDL file to Java™ code, where some simple functionality will be implemented to test communication between the client and the Web service. The test environment includes Axis2 deployed as a module on Geronimo, the Web service deployed as an archive within Axis2, and a simple Java client that communicates to the Web service.


Prerequisites

You need the following tools to follow along with this tutorial:

  • Apache Geronimo -- Download Apache Geronimo V1.0, on which you'll deploy an Axis2 Web service.
  • Apache Axis2 -- Download the version 0.94 Axis2 WAR and binary distributions, which you'll use to build a Web service from WSDL.
  • Apache Ant -- Download Apache Ant, which you'll need, because Axis2's WSDL2Java tool creates a handy Ant build.xml file for building the Web service, which makes building the Web service's source code a lot easier.
  • Java code -- Download the latest Java 1.4 version, Java 1.4.10, required by Geronimo, Axis2, and Ant.

This tutorial assumes you have basic knowledge of Java syntax and coding; however, no knowledge of Axis2 or specific Geronimo knowledge is assumed.

1 of 10 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source, SOA and Web services
ArticleID=105856
TutorialTitle=Online banking with Apache Geronimo and Axis2, Part 1: The service: Laying down the framework
publish-date=03212006
author1-email=ibmquestions@nicholaschase.com
author1-email-cc=ruterbo@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.