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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:46:31+00:00 2026-05-26T10:46:31+00:00

I am connecting to a WCF Service that does a re-direct to another Url.

  • 0

I am connecting to a WCF Service that does a re-direct to another Url.

When I connect to the WCF Service at http://myserver-hp/testws. This in turn does a re-direct to the end point : http://rootserver:8000/sampleservice/sampleservice.svc. For the re-direct, I ceated a virtual directory in IIS and then used Http Redirect available in Features View.

From the client I want to return an error when the server is doing a redirect. I tried adding a custom IEndpointBehavior and IClientMessageInspector. But then I am unable to detect the Http 307 ..

Is there any way for the WCF client to detect the fact the server is doing a Http Redirect to another Url. I am using wsHttpBinding in the WCF service.

Thanks

  • 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-26T10:46:31+00:00Added an answer on May 26, 2026 at 10:46 am

    Client can check the http status code,which will be 307, to decide the redirect.

    If you are working with SOAP, you should use routing services.

    WCF does auto redirect, if endpoint name matches with “/”. It adds that to the end. This happens if you specify various method calls under the same endpoint without method name in uritemplates. It will match the proper call based on method type, like “GET”,”PUT” for all empty uritemplates.

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

Sidebar

Related Questions

I wrote a Client that will connect to my WCF service, and the service
Imagine this scenario: you have a WCF web service that gets hit up to
Here is the problem: I have a WCF service and a few sites connecting
I am connecting to a third-party end point via WCF and I have one
That's a horrible title, sorry. Here's the scenario: WCF Service uses LINQ to get
So the question is does WCF4 invokes client connection pooling to WCF-service? For instance,
I have an application that is moving over from WCF Http to named pipes
Hi, I have a WCF service in IIS7 that communicates with a winform application
How does the life cycle looks like for the following : WCF Webservice(http) If
I've a WCF service that at the moment 11 clients ping in to every

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.