Hi,
I have created a new "WCF service library" type project. I have created a file for my contract and one file which implements the interface. Both are .cs files.
Please can anyone tell me how can i consume it. I mean where should i add my .svc file
Sobo BoPosted Aug 28, 2010, 4:32 AM
2. Add new item to the web app and choose wcf service.
-- You will have 2 files .svc and .svc.cs
3. Right-click the .svc file and click View Markup from the menu.
-- You will see something like this:
<%@ ServiceHost Language="C#" Debug="true" Service="Test.Web.Service" CodeBehind="Service.svc.cs" %>
4. Replace "Test.Web.Service" with the namespace from your wcf library.
5. Replace "Service.svc.cs" with the .cs file from your wcf library.
6. You can now delete the Service.svc.cs file from your web app.
That's it.
Hope that helps.
Mahesh ChandPosted Aug 26, 2010, 1:43 PM