Developing ASMX Web Services and Controlling the Generated WSDL
Microsoft has made the development of web services very simple for developers who use Visual Studio. Add a web service project and the basic plumbing code is generated! Many developers do not know what goes behind the hood or how to customise the generated WSDL when required. I’ve listed some salient ones that may be of help… Apply [WebService(Namespace = " http://www.johannes.org/webservice/2011/11/03/ ",Name=" ExtendingWebService ", Description=" version 1.0 ")] to the class to get these: < wsdl : definitions targetNamespace = "http://www.johannes.org/webservice/2011/11/03/" > < wsdl : documentation > version 1.0 </ wsdl : documentation > ... < wsdl : service name = "ExtendingWebService" > Apply [WebMethod(Description=" This web service is a typical one ")] to the operation to get this: < wsdl : operation name = "..." > < wsdl : documentation > This web service is a...