This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Are Web Services really necessary, why not use the alternatives? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Are Web Services really necessary, why not use the alternatives?" Watch "Are Web Services really necessary, why not use the alternatives?" New topic

Are Web Services really necessary, why not use the alternatives?

James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
There are quite a few alternatives available to Web Services these days:

REST / HTTP Invocations.

You can argue that WebServices is SOAP/HTTP(similar), but implementing WebServices is far more complex than other integration mechanisms. Even the original idea of discovering WebServices (via UDDI etc) seem to have been lost now.

What do you think: is the complexity involved in WebServices justify their usefulness?

For example:
Google Docs - provides REST-Style/HTTP calls for invoking its services. It does not provide WebServices interrface. This is true of many such integrations as well.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41042
You seem to be equating "web services" with "SOAP-based services". But the technologies you mention are not alternatives to "web services", they are alternatives to "SOAP-based web services". So the question you seem to be asking is really "What's the benefit, if any, of SOAP over REST (and/or other HTTP/XML service approaches)?" One of the benefits are the capabilities that come with the full SOAP stack as implemented by the various WS-* standards, like WS-Security and BPEL. If a particular service implementation doesn't need those, then, indeed, the overhead of SOAP may not be justifiable.

True, UDDI has failed to take off (although, interestingly, a new version of the standard is forthcoming), since web service registries in general have not established themselves. But that's not a failure of SOAP, that just means that the market has developed in a different direction than originally anticipated. So it can just be ignored, and doesn't add any complexity to SOAP itself.

The links to several articles that cover this in more detail in the "What is REST?" section.

Ping & DNS - my free Android networking tools app
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12756
(parenthetical thought - congratulations to whoever did the FAQ page Ulf points to - that is a great resource)
Don't get me started about those stupid light bulbs.
subject: Are Web Services really necessary, why not use the alternatives?
Similar Threads
Part I - Links for 3.1 and 3.2
Tutorials for Web service
Will there be Head First book for SCDJWS exam??
SCDJWS books .......
Web Services vs EJBs