-
WCF & SvcUtil error.
Hi,
I'm trying to generate a proxy class using svcutil.exe.
For this I do:
1)I create a new WCF Service Library Project.
2) Compile the solution.
3) Execute:
Code:
svcutil nameOfGenerated.dll
This generates 3 .xsd files and a .wsdl file.
4) Execute:
I then get this error message:
Generating files...
Warning: No code was generated.
If you were trying to generate a client, this could be because the metadata documents did not contain any valid contracts or services
or because all contracts/services were discovered to exist in /reference assembl
ies. Verify that you passed all the metadata documents to the tool.
Warning: If you would like to generate data contracts from schemas make sure to
use the /dataContractOnly option.
Any advice?
Thanks
-
Re: WCF & SvcUtil error.
You could try:
Code:
svcutil *.wsdl *xsd
On the other hand, if you created the service yourself, you could simply add a (service) reference to that project, so you "by-pass" the WSDL/XSD step