Any Web Service client using ASP.NET needs to declare a class deriving indirectly from WebClientProtocol. I used the word “indirectly” because, there are sub classes under WebClientProtocol that are specific to the protocol that we decided to use while communicating the Web Service. They are
? ? SoapHttpClientProtocol for SOAP
? ? HttpGetClientProtocol for HTTP-GET
? ? HttpPostClientProtocol for HTPP-POST
All the three classes mentioned above are derived directly or indirectly from WebClientProtocol class.
For example:
public class SoapCall : System.Web.Services.Protocols.SoapHttpClientProtocol