Step to Create WCF Service & Consume into ASP.NET CLIENT.
User Request
Find out Employee Details on the Basis of Dept Name using WCF . WCF will communicate with Database Server to get Data from table via Stored Procedure.
WCF REQUEST TO DATABSE FOR DATA & RETURN RESULT TO CLIENT AS ASP.NET OR OTHER CLIENT ETC.
THERE ARE FEW STEP TO DEVELOP WCF SERVICE.
- Run->Devenu->File Menu->New->Project->Wcf ->Wcf Service.
- Select Servicve Application.
- It Will Come With Predefined Code Aa Below. Remove All Existing Content. Add Your Own Method & Class.
- I have added there method signature. GetDetail(string DeptName)
- Go to service.cs & implement GetDetail(string DeptName)
This blog written by Ms. Shabana Idrisi (Dot Net Trainer at Vtech Academy of Computers)- Dot Net Development Course