Results 1 to 2 of 2

Thread: WCF & SvcUtil error.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Location
    Madrid
    Posts
    325

    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:
    Code:
    svcutil *.xsd
    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

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    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
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width