Building
a Simple Web Service ? A Tutorial
·
By
Jeevaraj Gnanaselvan Dhanaraj (jeevaraj_1970@yahoo.com)
(Jeeva has over 7 years of experience
in designing and developing enterprise class web applications using JAVA and
J2EE technologies.
He currently works for Itreya Technologies,
Bangalore, leading a team of over 10 programmers and designers, developing a
multi-user, distributed, web-based workflow application)
·
Introduction
In
this tutorial we will create a simple web service and a client web application
using eclipse IDE along with Lomboz
plug
in. We
will also deploy and test the web service on Tomcat 5.5.4 web application
server. This application, while simple, provides a good introduction to Web
service development and some of the Web development tools available.
·
Environment
J2SDK
1.4.2
http://java.sun.com/
Eclipse
3.1
Tomcat
5.5.4
Lomboz
3.1RC2
http://lomboz.objectweb.org/
·
Installation
Install
JDK (in D:\j2sdk1.4.2_04)
Install
Tomcat (in E:\Tomcat5.5)
Install
Eclipse (in E:\Eclipse3.1)
Install
Lomboz (in E:\Eclipse3.1)
·
Setting up




·
Creating a Web service



public String sayHello(String name){
return "Hello " + name;
}



http://localhost:8080/WebServiceTutorialClient/sampleHelloProxy/TestClient.jsp




·
Conclusion
In this
tutorial we learned how to create a simple web service and a client web
application using eclipse IDE along with Lomboz
plug
in. We
also deployed and tested the web service on Tomcat 5.5.4 web application server.
This application, while simple, provides a good introduction to Web service
development and some of the Web development tools available.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Java Building a Simple Web Service ? A Tutorial Tutorial View All Comments
Post your Comment