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

  • Home
  • SEARCH
  • 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 6685477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:03:44+00:00 2026-05-26T05:03:44+00:00

TL;DR version is at the bottom. I have constructed three WCF web services —

  • 0

TL;DR version is at the bottom.

I have constructed three WCF web services — one that’s using .NET 4 and two that’s using .NET 3.5 — that is consumed by an Android client. The Android client performs the calls using ksoap2-android. When the services were complete and the client could make all the calls and get all the data from the services, we decided to activate HTTPS communication for the web services. They are hosted on a server running IIS.

I’m not alone on this task. I work full-time with it, mainly the Android client. I have two coworkers, both of which have a lot of other responsibilities. The first is mostly involved in the services and the second is mostly involved in the server.

I’ve read a lot of guides, blogs and articles on the Internet on how to enable HTTPS for a WCF web service, but still I haven’t been able to completely resolve this. For the Android client to be able to consume the client, we are limited to using the basicHttpBinding, since the wsHttpBinding contains some security details that are not supported by Android, or something. I’m not sure, but I read it some forum somewhere. If I’m wrong, I’d happily be corrected!

Okay, so I’ll give a short account of what I’ve done so far:

I’ve enabled transport security, this is how the binding(s) looks:

<bindings>
  <basicHttpBinding>
    <binding name="basicHttp" closeTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
      <security mode="Transport">
        <transport clientCredentialType="None" />
      </security>
    </binding>
  </basicHttpBinding>
</bindings>

I’ve enabled meta data publishing over HTTPS using this line of code:

<serviceMetadata httpsGetEnabled="true" />

and this:

<endpoint address="" binding="mexHttpsBinding" contract="IMetadataExchange" />

Also, my second coworker has installed a trusted certificate (a real certificate from a CA) on the IIS server and added a https binding on the server.

Okay, so far, so good. Now we could connect to the services in the browser.

When we had done this it was possible to visit the service in the browser in a secure, encrypted, manner.

The problem is that it isn’t possible to make a call to the service, neither in Android nor WCF Test Client. If I call the service on the https address, I get a 404 in response. WCF Test Client returns this:

There was no endpoint listening at https://[my service address] that could accept the message. This is often caused by an incorrect address or SOAP action.

To be able to debug this, I’m using Wireshark to intercept the messages and see what really happens. I’ve found out that after the set up procedures (handshake, establishing trust etc.) the client sends the header and get a 101 Continue in response, after which it POSTs the body. This should be normal behavior. But then the service returns 404 Not Found. Wireshark says that the full request URI is the http address. I’ve configured the server to use the https address, so why does it make a call to the http address?

I’ve tried setting the address and listenUri attribute of the endpoint to https and http respectively and the other way around. If I do that, the server answers the request with 405 Method Not Allowed.

Is there any way to solve this? What am I missing?

What am I missing?

TL;DR version below

I’m hosting three WCF SOAP web services with IIS, one using .NET 4 and the others using .NET 3.5. I’m trying to make a call from the WCF Test Client over HTTPS. I’ve enabled transport security, meta data publishing over HTTPS, installed a trusted certificate and added a https binding on the server.

When I try to make a call from WCF Test Client it says that there was no endpoint listening at the address. Wireshark tells me it makes the call to the http version of the service (i.e. “http://[my address]” instead of “https://[my address]”), although it is configured to call the https address. The service returns 404 Not Found. If I set the address of the service to https and listenUri to http, I get 405 Method Not Allowed. If I do it the other way around it says that it cannot be activated. What am I missing?

  • 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-26T05:03:45+00:00Added an answer on May 26, 2026 at 5:03 am

    I solved this by removing the endpoint and using the <protocolMapping> tag, like this:

    <protocolMapping>
      <add scheme="https" binding="basicHttpBinding" bindingConfiguration="basicHttps" />
    </protocolMapping>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i`m using the ignition version if that helps. I have everything setup great but,
Basically, I have to load two google maps, one dependent on the another. In
I'm using the Sencha ExtJS Framework in Version 4.05 and i have the following
Update Added jsfiddle - see bottom of post I currently have a function that
I have created a simplified version of my code that experiences the same issue.
I have an application in which there are two buttons side-by-side at the bottom
I have an App that has a toolbar at the bottom of the screen
I have an asp.net site that displays the way I want it to on
I have a CSS/HTML list that is using an image as the background and
I have my site under the latest version of Jquery. There's two problems however:

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.