Showing posts with label Array. Show all posts
Showing posts with label Array. Show all posts

Saturday, February 4, 2012

Arrays in .NET Webservices

Web Service
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

© kani.stack.notez 2012 | Blogger Template by Enny Law - Ngetik Dot Com - Nulis