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.
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.