Web service is a way of communication that allows interoperability between different applications on different platforms, for example, a java based application on Windows can communicate with a .Net based one on Linux. The communication can be done through a set of XML messages over HTTP protocol.
Read more at http://javapostsforlearning.blogspot.com/2013/03/web-service-tutorial.html#vpd7gs4U2KJUy29U.99