Can we have a private method in webservices ?
Vamsi Krishna
Yes we can have private methods in web service but we can access then in service.
Yes you can have a private method in webservices but you will use it only within webservice's class,you will not be able to call it from outside the webservice at allExample: [WebMethod] public static string WebMethod(string postCode) { // My webmethod code string str = Add(2,5); }private static string Add(int a, int b) { // My private method code }