As we know that with previous versions of Windows Communication Foundation, while creating proxy using SvcUtil.exe tool, the output generated file contains the Service Contract, Client operations as well as Data Contracts.
There was no way to generate the Service Contract only.
But with Windows Communication Foundation v4.5, now its possible to generate the Service Contract only using SvcUtil.exe tool as follows:
svcutil.exe “http://localhost:MyWCFService/Service1.svc?wsdl” /serviceContract
© 2015, www.techkatak.com. All rights reserved.