This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Web Services and Servlets

 
Abhishek Mulay
Greenhorn
Posts: 1
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Can anybody explain me what is the difference between Web-Services and Servlets ? Is the web service alternative to the Servlets ? Really confused....

Thank you,
Abhishek
 
pankaj rana
Greenhorn
Posts: 1
Eclipse IDE Linux Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web Service defines higher level abstraction such as some business specific functionality and can be defined using PHP, Java, C# or any other language. While Servlet is just a software implementation component responsible for transport of data. A servlet is an HTTP query handler. You can do what you want with your incoming queries
You access servlet via HTTP while you access Web Service via SOAP (Simple Object Access Protocol).
web services are used to provide API to other applications, the WSDL file of your web service can give the caller enough information to invoke your web service But, in fact, you can not directly invoke a servlet, you can only open URL connection and put some parameter to the servlet if the caller is out of your application. And you can not restrict what parameters the caller can put. The caller does not know what parameters your servlet can receive .
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic