MS WS Practical 10
MS WS Practical 10
Practical 10
Aim:-Demonstrates using the binding attribute of an endpoint element in WCF.
Step 1:-
Open Microsoft visual studio → select create a new project
Step 2:-
Select WCF Service Library → click on Next.
Step 3:-
Give the project name ‘SampleCalcSvc’ → click on create.
Step 4:-
Delete IService1.cs and Service.svc from solution explorer.
Step 5:-
Step 6:-
Right click on SampleCalcSvc from solution explorer →add →new item →interface
→give name ICalcService.cs
Step 7:-
write code in ICalcService.cs
Step 8:-
Right click on SampleCalcSvc from solution explorer →add →new item →class
→give name CalcService.cs
Step 9:-
write code CalcService.cs
Step 10:-
Right click on SampleCalcSvc from solution explorer →build
Step 11:-
Step 12:-
Step 13:-
Select Browse.
Step 14:-
Step 15:-
Select TCP
Step 16:-
Step 17:-
Click on Finish
Step 18:-
Step 19:-
Step 20:-
Step 21:-
Click advanced →right click service behaviour →new service behaviour configuration
Step 22:-
Click add button → Select the shown option and Click add
Step 23:-
Select service debug → make the selected option from false to true.
Step 24:-
Step 25:-