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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:22:11+00:00 2026-05-20T11:22:11+00:00

How do I create a single flat WSDL file (with no external references from

  • 0

How do I create a single flat WSDL file (with no external references from within) from an existing WCF service? This WSDL will be used (imported) into an older programming technology that only supports BasicHttpBinding. Please address your answer to a beginner.

  • 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-20T11:22:12+00:00Added an answer on May 20, 2026 at 11:22 am

    I had to do this, too. And I used the WSDLExtras library. It’s not too big of a deal.

    Here is a step by step instruction for using it:

    1. Download the WCFExtras from here, extract it and add a reference to it in VS.

    2. Add a reference to your Web.config/App.config like this:

      <system.serviceModel>
          <extensions>
              <behaviorExtensions>
                  <add name="wsdlExtensions" type="WCFExtras.Wsdl.WsdlExtensionsConfig, WCFExtras, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
              </behaviorExtensions>
          </extensions>
      </system.serviceModel>
      
    3. Add the extension to your endpoint behavior and set the singleFile attribute to true

      <endpointBehaviors>
           <behavior name="singleFileEndpointBehavior">
               <wsdlExtensions singleFile="True" />
           </behavior>
      </endpointBehaviors>
      
    4. Use the endpointbehavior for your service-endpoint.

      <endpoint address="YourEndPoint/Address" binding="YourBinding" behaviorConfiguration="singleFileEndpointBehavior" contract="IYourContract">
      

    This worked fine for me. You can also download a full example from the WCFExtras project page: ProjectPage

    Edit:
    For the sake of completeness: You can use the ”?singleWsdl” query parameter since .NET 4.5 as stated in Irwins answer. See the link he posted for more details.

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

Sidebar

Related Questions

Is it possible to create a single .svc file (WCF Service) that I can
I need to create a single trace file that spans several days for one
I want to create a flat result set from the results of two methods
High Level Goal: Create a single Maven Web Application project that can be used
I am trying to create a single php file I can use to display
I hope to create a single app that supports both the iPhone and the
I would like to create a single URL that returns one image when loaded
For my application (an MMC snap-in) I need to create a single native DLL
Does anyone know if it is possible to create a single connection string that
Using PDF, is it possible to create a single form element with multiple fields

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.