Develop WCF Service & Consume it into ASP.NET Portal

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 Business Logic

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.

  1. Run->Devenu->File Menu->New->Project->Wcf ->Wcf Service.
  2. Select Servicve Application.
  3. WCF Business Logic

  4. WCF Business Logic

  5. It Will Come With Predefined Code Aa Below. Remove All Existing Content. Add Your Own Method & Class.
  6. WCF Business Logic

  7. I have added there method signature. GetDetail(string DeptName)
  8. Go to service.cs & implement GetDetail(string DeptName)
  9. WCF Business Logic

This blog written by Ms. Shabana Idrisi (Dot Net Trainer at Vtech Academy of Computers)- Dot Net Development Course

0 Responses

  1. December 20, 2016 / 10:05 am

    Your comment is awaiting moderation.

Leave a Reply

Your email address will not be published. Required fields are marked *