Can we add webservice(.asmx) to window application.When i go through File->New Project-> i cant see webservice template for addind.
But in File->New Web Site(for window application) we can easily add webservice
But when you go through this link codeproject.com/KB/webservices/… ,,there they are adding in window application side means File->New Project-> –
Adding a Web Service in .NET…
You need to understand the wCF vs ASMX first, and for that I will point you to one of my answers regarding the subject.
What is the difference between an asp.net web method and a wcf service?
after knowing that, you will know that ASMX Web Services require IIS to live, and for that, you will only find the template of a ASMX Web Service in a Web site project.
You can off course create a WCF Service, and you can host it anywhere you want, in IIS, as a Windows Service, as a TCP/IP service, as … everywhere 🙂
Witch I thing is what you are after.
There are plenty of Video Tutorials outthere regarding WCF Services so you can see how to make and consume one.