There are basically two types of web services :
SOAP (Simple Object Access Protocol) Web Services : It is also referred to as transport-independent messaging protocol whose main purpose is to transfer a message, and is based on XML protocol.
RESTful (Representational State Transfer) Web Services : It is developed to fulfill the shortcomings of SOAP and to make the web services more effective.