|
Integrating Apache Axis with the Spring Framework
by Alexander Prohorenko and Olexiy Prohorenko
Nowadays, many applications work in decentralized, distributed environments. Most of these applications need to exchange structured information with other applications. One of the best ways to do this is to use a SOAP ("Simple Object Access Protocol") protocol.
The SOAP protocol has many different implementations, but this article will focus on Apache Axis. Apache Axis is becoming popular among developers because "it has proven itself to be a reliable and stable base on which to implement Java Web services." At it's core, Axis is mainly a framework for constructing SOAP processors like clients and servers, but its use is not limited to this.
Another framework which is also very widely used and supposed to be a "best fit" for lightweight applications is the Spring Framework. Spring is a layered J2EE application framework, which includes, but is not limited to, the most complete lightweight container and flexible MVC Web application framework. Spring was created to address the complexity of enterprise application development.
So, what happens if you connect these two "best fit" frameworks together?
This question has been asked oftenand there are many different ways to mix the two. In this article, you'll write a SOAP Web service using Apache Axis with classes available for configuration and initialization using the Spring Framework. Hopefully, this will give you an idea of the possiblities made available by using the two frameworks together.
What You Will Need
To understand and run everything described in the article, first of all you have to be familiar with J2EE in general, Spring and at least to have basic understanding of Web services. You need to have some hands-on experience with developing Web applications. You can expect this article to be a tutorial or how-to guide.
The list of software which will be used within this article:
You'll use the following software to compile and run your code:
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|