This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes difference between webservice and servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "difference between webservice and servlet" Watch "difference between webservice and servlet" New topic
Author

difference between webservice and servlet

srinivas rao
Greenhorn

Joined: Feb 01, 2005
Posts: 10
can anyone explain wht is the clear difference between webservice and servlet
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"ssrao"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

DUPLICATE OF:
http://www.coderanch.com/forums/


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Thanks Ben.

I have deleted the duplicate post from the Web Services forum.

Mark
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

A servlet can be a webservice.

A servlet simply waits for an HTTP request and responds to it.

A Web Service request is a particular type of HTTP request, It is usually a post request that sends XML. The webservice (which can be a servlet) responds by sending some XML back. As long as the framework on each end understands the layout of the XML (SOAP, WSDL, etc..), Web Services can be used to allow programs on different machines, written in diffent languages, running on different platforms to communicate as if they were calling functions on a local machine.

The Web Service engine, Axis, is implemented as a servlet (or comes wrapped in one).
http://xml.apache.org/axis.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: difference between webservice and servlet
 
Similar Threads
jsp vs servlet
What is difference between Servlet and GenericServlet?
Difference between @WebService and @WebServiceProvider
difference between restful webservice and jersey webservice
jsp