Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Web Services and URL Connection

 
vinod ernakulam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vinod ernakulam
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the reply.
That explanation gives more clarity....

Thanks
Vinod
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic