File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Author

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:

Custom-XML/HTTP
RPC/HTTP
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
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
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 http://faq.javaranch.com/java/WebServicesFaq links to several articles that cover this in more detail in the "What is REST?" section.


Ping & DNS - updated with new look and Ping home screen widget
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
(parenthetical thought - congratulations to whoever did the FAQ page Ulf points to - that is a great resource)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Are Web Services really necessary, why not use the alternatives?
 
Similar Threads
Will there be Head First book for SCDJWS exam??
Part I - Links for 3.1 and 3.2
SCDJWS books .......
Tutorials for Web service
Web Services vs EJBs