• Post Reply Bookmark Topic Watch Topic
  • New Topic

WebService Vs Serlet  RSS feed

 
Jobin Mathew
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What are the advantages of webservices over servlet?
A servlet also can process request from any client and gives response (Both can be in a xml format).
So what makes these webservices this much popular?

Thanks
Jobin.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For starters, web services (WS) are transport- and language-independent. So you can use them even where Java and HTTP are not available or are not considered as options.

As far as implementations go, in the Java world WS are mostly implemented as web apps, but they provide abstractions above and beyond what the Servlet API offers. E.g., the JAX-WS API has a JAXB binding that allows you to handle Java objects instead of strings and XML fragments or documents. Other standards provide encryption/signature facilities (WS-Security) or service orchestration (BPEL). And, just as a reminder, those work cross-platform, cross-language and cross-transport, so there's a lot of architectural flexibility.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!