Whenever we try to browse the ASP.Net web service (ASMX) in a browser, a complete documentation is being displayed on the web page. It includes documentation on the names of method, their usage, their parameters and return type. On many occasions we might not want to share this information publicly over internet.
Hide documentation in ASP.Net ASMX Web Service
Now to prevent this information publicly available over internet there’s simple setting that you need to do in the Web.Config file. You need to place the following setting in the <system.web> section of the Web.Config.
 
<webServices>
<protocols>
              <remove name="Documentation"/>
</protocols>
</webServices>

Once you do this, try to access the web service through the browser. You will receive the following error message.

Hide documentation in ASP.Net ASMX Web Service