Which attribute is used in order that the method can be used as WebService ?

WebMethod attribute has to be specified in order that the method and property can be treated as WebService.