-
Feb 20th, 2011, 11:40 AM
#1
Thread Starter
Hyperactive Member
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
-
Mar 15th, 2011, 02:47 PM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|