aspose file tools*
The moose likes Web Services and the fly likes Difference between Web Services and URL Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Difference between Web Services and URL Connection" Watch "Difference between Web Services and URL Connection" New topic
Author

Difference between Web Services and URL Connection

vinod ernakulam
Greenhorn

Joined: Jun 29, 2009
Posts: 7
I am new to webservices.
I am working with Java.
I want to know the differences between the java.net.URLConnection and webservices?
I have used Jakartha Commons HTTP client for connecting to a remote application.
Now I am learning Java web services.
But I am not really getting the difference in using URLConnection and Web services.Can anybody please explain.

Thanks
Vinod
vinod ernakulam
Greenhorn

Joined: Jun 29, 2009
Posts: 7
Hi,

I found the same question here.
http://www.coderanch.com/t/472863/Web-Services/java/Difference-between-Web-Services-calling

But still the explanations are not clear.
Can anybody make it more clear.
Is it possible to do everything that is possible by webservices by URLConnection also?


Thanks
Vinod.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
The term "web service" is commonly used to refer to a resource that's accessible through SOAP- or REST-based protocols. While SOAP is theoretically transport-independent, it's overwhelmingly used with HTTP; other transport mechanisms do exist though (like messaging, email and raw TCP/IP). REST is tied intimately to HTTP.

URConnection and HttpClient are ways to enable HTTP communication, thus they can be used as the basis to build web service clients.


Ping & DNS - my free Android networking tools app
vinod ernakulam
Greenhorn

Joined: Jun 29, 2009
Posts: 7
Thanks a lot for the reply.
That explanation gives more clarity....

Thanks
Vinod
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Web Services and URL Connection