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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:33:00+00:00 2026-05-31T08:33:00+00:00

I have a WCF web service hosted in IIS7 which is reporting its endpoint

  • 0

I have a WCF web service hosted in IIS7 which is reporting its endpoint URL as the following in its WSDL

http://machinename/virtualdirectory/service.svc

However the actual public URL which clients need to use is actually

http://machinename.mydomain.com/virtualdirectory/service.svc

And so at the moment clients that attempt to use this web service fail unless they manually edit the endpoint URL.

I know that I can fix this by changing the bindings of the site in IIS as per HOWTO: Fix WCF Host Name on IIS however in this case the site is shared with another application which stops working if I do this and so this isn’t an option.

Is there another way that I can change the endpoint URL that WCF uses for this one virtual directory?

  • 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-31T08:33:01+00:00Added an answer on May 31, 2026 at 8:33 am

    There are a couple of options depending on which version of WCF your service is using. If you’re using .NET 4 or higher, look at the accepted answer to this SO question. Otherwise you can either apply the hotfix that question references or if you’re really desperate, hack the metadata URL of the httpGetUrl attribut to point to a copy of the WSDL which has been manually edited to contain the desired endpoint URL.

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

Sidebar

Related Questions

I have one WCF web service hosted on https. which android versions supports https.
I have a WCF web service project, say FooService.vbproj with a FooService.svc endpoint. Its
I have a WCF service hosted at IIS7 web application. It's created by a
I have a WCF web service, which I have hosted in IIS on my
I have a web service, implemented with WCF and hosted in IIS7, with a
I have a simple WCF Web service. It's hosted on IIS under the default
I have a WCF Web Service which is referenced from a class library. After
We have a WCF service, hosted on IIS7.5, that has to fetch some data
I have a web service (not a WCF service) hosted under IIS 7, the
I have a WCF web service that works perfectly with an http address, but

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.