public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public int[] sort(int[] arr)
{
Array.Sort(arr);
return arr;
}
}
Then run the service.Copy the URL of the WSDL
ex : http://localhost:4886/Service1.asmx?WSDL
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public int[] sort(int[] arr)
{
Array.Sort(arr);
return arr;
}
}
Then run the service.