To generate a WCF service proxy by excluding data contracts use the svcutil.exe command. You can execute this command in a visual studio command window.
Syntax: svcutil /et:<Fully qualified name of your data contract class> <Service URL>
Note that et: is the short form for excludeType. The above command is the same as:
svcutil /excludeType:<Fully qualified name of your data contract class> <Service URL>
The successful execution of the above command generates, in your current directory:
1. A proxy class
2. A configuration file for the proxy.
1 comment:
If you want to exclude more than one data contract class, insert into your command a /et: per data contract you want to exclude.
Post a Comment