0 votes
in Web Service by
Write an example to demonstrate the working of the Web Service Provider.

1 Answer

0 votes
by
Here is the example of a Web Service Provider:

using System;  

using System.Web.Services;  

using System.Xml.Serialization;  

  

[WebService(Namespace="http://localhost/MyWebServices/")]  

public class FirstService : WebService{  

   [WebMethod]  

   public int Add(int a, int b) {  

      return a + b;  

   }  

  

   [WebMethod]  

   public String SayHello() {  

      return "Hello World";  

   }  

}

Related questions

0 votes
asked Sep 25, 2023 in Web Service by Robin
0 votes
asked Sep 24, 2023 in Web Service by john ganales
...