Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm writing a .NET 4.0 app and have control over both the WCF service and client.
I'm using svcutil to generate proxy classes for my services, combining several services.
svcutil /o:.\ServiceProxies\NavigatorServiceWCFProxy.cs /ct:System.Collections.Generic.List`1 /namespace:*,FIS.Navigator.Common.NavigatorService /noconfig http://localhost/NavigatorService/NavigatorService.svc?wsdl
It generated two class look like:
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute(System.Runtime.Serialization, 4.0.0.0)]
[System.Runtime.Serialization.DataContractAttribute(Name=RequestBase, Namespace=http://schemas.datacontract.org/Navigator/Base)]
public partial class RequestBase : object, System.Runtime.Serialization.IExtensibleDataObject
{

}
[System.CodeDom.Compiler.GeneratedCodeAttribute(svcutil, 4.0.30319.1)]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute(code)]
[System.Xml.Serialization.XmlTypeAttribute(Namespace=http://schemas.datacontract.org/Navigator/Base)]
public partial class RequestBase
{
}
If we add a service reference only one partial class is generated in reference.cs Why it is creating two Classes?
How to generate only one partical class using svcutil ?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900