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 563219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:38:13+00:00 2026-05-13T12:38:13+00:00

I understand this is a basic topic but never done this before starting from

  • 0

I understand this is a basic topic but never done this before starting from wsdl.

I am being handed a wsdl file and a bunch of xsd with the types definitions. I don’t have a clue if they were created from a WCF service (I guess so because of the split out format) but I do need to create a WCF service that implements the contract.

Question: How do I get the service contract interface?

I know about wsdl.exe and svcutil.exe – but not too familiar with what’s what.
I guess after that all that’s left is implementing the service contract.

Any help appreciated!

P.S. I had another question about this but I tried to put too much stuff in the same question – so let’s keep it simple for now.

  • 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-05-13T12:38:13+00:00Added an answer on May 13, 2026 at 12:38 pm

    You have two choices:

    Option 1: Use the svcutil.exe utility on the command line. It should be installed in your C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin directory (or something similar, depending on machine and OS you have)

    Use svcutil -? for the list of all the many parameters. Basically, in its most simple form, use:

    svcutil  (name of your service).wsdl (name of your datafile).xsd
    

    and that will create a corresponding (name of your service).cs C# file with the service and data contracts, and a sample config file.

    The resulting *.cs file (or *.vb, if you want VB.NET) will contain the service contract (the methods, resulting from the WSDL) and the data contracts (the data portion, coming from the XSD) for your service.

    Option 2: Use the “Add Service Reference” dialog in Visual Studio (on the “References” node in your Solution Explorer) and just enter the file name of your WSDL file:

    Add Service Reference dialog

    This will create a service reference, which is basically the same as the output from the svcutil.exe utility – plus a few helper classes and files for Visual Studio.

    Unfortunately, in both cases, the import will create a horribly overloaded config file which is probably one of the reasons lots of programmers think WCF is awfully complicated – it’s really not, but these two import tools just do a horrendously bad job on creating the basic config for you…. don’t let that scare you away!

    If the Add Service Reference for the WSDL doesn’t automatically convert all relevant and necessary XSD files, you might need to add those to your project, and then use something like XSD2Code to convert those to C# (or VB.NET) classes for you.

    The wsdl.exe is the deprecated utility to convert a WSDL file into a ASMX (ASP.NET webservice) stub – don’t use that anymore, use svcutil.exe or Visual Studio’s Add Service Reference for WCF.

    As for how to create a proper and minimal WCF config, check out the DotNet Rocks TV Show #122 with Miguel Castro entitled Extreme WCF. Miguel presents a great way to structure your WCF projects, and to create just as much config as is really needed (and thus can be understood a lot better than the generated mess by svcutil).

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

Sidebar

Ask A Question

Stats

  • Questions 382k
  • Answers 382k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You are correct in that glibc uses symbol versioning. If… May 14, 2026 at 10:32 pm
  • Editorial Team
    Editorial Team added an answer You will probably need to adjust the top and left… May 14, 2026 at 10:32 pm
  • Editorial Team
    Editorial Team added an answer Set chart's AntiAliasing to AntiAliasingStyles.Graphics to disable the antialiasing on… May 14, 2026 at 10:32 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.