Before reading this blog, I would recommend you to read the previous parts of it.
Open Visual Studio > File > New > Web Site…

Step 2
Create “ASP.NET Empty Web Site”. (name it say “MyWebService”) and save it in the desired location.

STEP 3
Right-click on Project Folder in Solution Explorer on the right side > Add > New Item.

Step 4
Select your language (C# in my case) > Select Web Service (ASMX) >Click Add after naming it (say MyWebService.asmx)

Explanation of the default code

[WebService(Namespace = "http://tempuri.org/")]
Each XML Web service needs a unique namespace in order for client applications to distinguish it from other services on the Web.
tempuri.org is the test default namespace URI. It is available for XML Web services that are under development, but published XML Web services should use a more permanent namespace. The term is strictly a placeholder and all instances of it should be replaced with a more meaningful URI in production systems.
An XML Web service should be identified by a namespace that is controlled by its company. For example, a company's Internet domain name could be used as part of the namespace. Although many XML Web service namespaces look like URLs, they need not point to actual resources on the Web.

Piyush AgarwalPosted Mar 7, 2018, 5:39 AM
Helped me refresh Web Services
Sagar Pandurang KapPosted Mar 7, 2018, 4:17 AM
Very nice Helpful.keep sharing...