Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9231845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:10:15+00:00 2026-06-18T06:10:15+00:00

Using wsdl.exe /l:CS /serverInterface , I generated a C# interface from a WDSL document.

  • 0

Using wsdl.exe /l:CS /serverInterface, I generated a C# interface from a WDSL document. I’ve implemented that interface on a WCF class. The resulting service runs locally:

http://localhost:51454/TapasSim.svc

This shows the default site. The problem appears when I append ?wsdl to the URL:

http://localhost:51454/TapasSim.svc?wsdl

enter image description here

Unlike what I expected, this link does not return a WDSL document! Instead, it points back to the exact web page you get without the ?wsdl. As a result, I cannot reference the web service. If I run svcutil.exe it gives this error:

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
assemblies. Verify that you passed all the metadata documents to the
tool.

But I would expect that error to have the same cause as the lack of reply to ?wsdl.

What could cause a WCF .svc service not to generate WSDL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:10:17+00:00Added an answer on June 18, 2026 at 6:10 am

    As it turns out, the problem was mixing two technologies. wdsl.exe belongs to the older “Web References” that predate WCF. The newer tool svcutil.exe is meant for generating WCF “Service Reference” interfaces.

    So what happened was that WCF looked for [ServiceContract] and [OperationContract] attributes. When it couldn’t find any, it silently did nothing.

    The silent suppression of this condition is annoying, to say the least. An error like No service with [ServiceContract] attribute found would really have helped.

    Note that you can manually add [ServiceContract], but that will leave you with half “Service Reference” half “Web Reference”. The result probably will not work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C# class that gets generated using the wsdl.exe tool that looks
I have generated a class using wsdl.exe from the wsdl file. I inspected the
Using the Silverlight service generator a service class is created: slsvcutil.exe http://localhost/zzz/zzzz.svc?wsdl /namespace:*,General /d:z:\desktop
I have a .NET web-service client that has been autogenerated from a wsdl-file using
I'm trying to build the proxy class for a web service using the wsdl
I generate C# code from WSDL using Service References in Visual C# 2010 (see
I generated an interface based off a WSDL definition file with wsdl.exe to use
I'm generating Java from WSDL using wsimport (JAX-WS 2.1.3) and need to make it
I have two project, one which generates some artifacts from a WSDL file using
I'm using a web service where the WSDL describes a single string element in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.