Posted on: 3/6/2014 12:08:44 PM | Views : 537

I created one custome library project and it have Employee class to hold employee information.
namespace Test.SampleLib { public class Employee { public string EmployeeName { get; set; } public double EmployeeSalary { get; set; } } }
I added the Employee class library to the WCF service
public Test.SampleLib.Employee GetDataUsingDataContract(Test.SampleLib.Employee composite) { return composite; }
I tried to consume the service and access the method GetDataUsingDataContract()
ServiceReference1.Service1Client objServiceRef = new ServiceReference1.Service1Client(); Test.SampleLib.Employee objEmployee = new SampleLib.Employee(); objEmployee.Empl ...

Go to the complete details ...