• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between webservice and servlet

 
srinivas rao
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone explain wht is the clear difference between webservice and servlet
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben.

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

Mark
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic