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 Difference between Web Services and calling a Url through http connection? 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 "Difference between Web Services and calling a Url through http connection?" Watch "Difference between Web Services and calling a Url through http connection?" New topic
Author

Difference between Web Services and calling a Url through http connection?

Sunil Bhambani
Greenhorn

Joined: Sep 23, 2008
Posts: 7
Hi,

I am very new to Web Services and would like to know what is the difference between calling a Web Service and callling a URL through http connection. Both can be used by any client application.

Hope to get a reply soon.


Regards
Sunil
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
This is a simplified and very brief introduction which I hope will answer your question:
  • SOAP web servcies: When you issue a web service request, you are typically invoking some processing in the web service server that, optionally using some indata, may or may not produce a result that is returned.
  • RESTful web services: Issuing a request typically retrieves the representation, commonly in XML or JSON, of a resource identified by the URL to which the request was sent.
  • Issuing a request for an URL in a browser or using a HTTP client program typically retrieves some data from the URL in question. The data can be static, but can also be dynamically generated.

  • Best wishes!
    William Brogden
    Author and all-around good cowpoke
    Rancher

    Joined: Mar 22, 2000
    Posts: 12758
        
        5
    Note that a request to a URL is completely open-ended with respect to what is returned.

    SOAP is a very strictly controlled protocol for both the request and return formats.

    REST provides a formal way of thinking about web services which provides for great flexibility in returned data format and is easier to program than SOAP.

    Bill
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: Difference between Web Services and calling a Url through http connection?
     
    Similar Threads
    web service vs messaging
    categorybag and identifierbag
    Difference between Web Services and URL Connection
    Diff b/w Webserver & ApplicationServer
    What is the difference between servlet and webservice.