• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is the difference between servlet and webservice.

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

In one of my interview,interviewer asked me what is the diference between servlet and RESTful webservice.
I said webservice internally uses servlet.
Then he asked why do i need to go for webservlet instead of sevlet.
I said webservice return xml.so webservice can interact with other application like Dot Net,perl.
He said he can do the same in servlet.
I'm unanswerable to this question.

can any one please explain me what is the advantage of webservice over servlet.

Thanks in advance,

by
Dhaya

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does this previous discussion -which I found by searching for "difference servlet web service"- help? (Yes, that's a not too subtle reminder that you should SearchFirst.)
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The main difference between a servlet and web services is, we will expose web services through the wsdl (web service description language) . so you can give wsdl to as many users of different platforms an languages.

Wsdl describes the service, what are the operations it does and where is it located. where as servlet cannot.

hope this is useful
 
reply
    Bookmark Topic Watch Topic
  • New Topic