This discussion is archived
1 Reply Latest reply: Aug 30, 2010 10:06 PM by 675595 RSS

Servlets vs Webservices

709949 Newbie
Currently Being Moderated
Though it is a simple question for many of you.
I would request some major points in terms of invention of Webservices over other J2EE technologies like Servlets, JSPs.
I'm so sorry if I ask a stupid question.

Q) what are the advantages of Webservices over a Servlet and what makes me to choose Webservice where my Servlet can also do that ?

Appreciate your ideas/thoughts/arguements/suggestions/clarifications... :)

Thanks :) Have a Nice Day.
Kiran
  • 1. Re: Servlets vs Webservices
    675595 Expert
    Currently Being Moderated
    Servlets are easy to create. One disadvantage is servlets don't have ability to display the data/format they are expecting and response they will be giving out. Webservices do. webservices are discoverable. You expose a servlet and people will not know how to use it with out an explicit documentation from the servlet. These are few on top of my mind.And there are many more use-cases that webserices can support which servlets cannot

    Thanks
    Manoj

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points