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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:24:50+00:00 2026-05-15T09:24:50+00:00

The situation: We have Windows 2008 web serverse with IIS7, (.NET4) We can comminicate

  • 0

The situation:

  1. We have Windows 2008 web serverse with IIS7, (.NET4)
  2. We can comminicate with the webserver only through the default HTTPS (443) port
  3. There is an ASP.NET website hosted on the servers, the service is part of the website code.
  4. Some clients (desktop applications with WCF support) want to communicate with our new WCF webservice
  5. Message size between the parties can be 100 – 400 kb
  6. We’d like to keep the WCF service part of the IIS.
  7. On client side we request a custom username and password to connect to our service
  8. There are longer sessions with more DB processign behind
  9. And there are quick short sessions – like ping from the client
  10. The client passwords are stored on our webserver (from DB) – clients should be authenticated against these passwords.

Question:
1. From these constraints what would be the best protocol to use?
2. Would you use sessions by default?
3. Tried this binding first (it works, however there is no session support)

  <!--define a SOAP binding-->
  <wsHttpBinding>
    <binding name="DefaultSOAPBasedHTTPSBinding" maxReceivedMessageSize="400000">
      <readerQuotas maxArrayLength="102400" />
      <security mode="Transport">
        <transport clientCredentialType="None" />
      </security>
    </binding>
  </wsHttpBinding>

To enable sessions:

  <wsHttpBinding>
    <binding name="DefaultSOAPBasedHTTPSBinding" maxReceivedMessageSize="400000">          
      <readerQuotas maxArrayLength="102400" />
      <reliableSession enabled="true" />
      <security mode="TransportWithMessageCredential">
        <transport clientCredentialType="Basic" />
        <message clientCredentialType="Certificate"/>
      </security>
    </binding>
  </wsHttpBinding>

My feeling is that this transport & message securtiy is too much – I mean do we really need this in order to allow sessions with wsHttpBinding?

  • 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-15T09:24:51+00:00Added an answer on May 15, 2026 at 9:24 am
    1. wsHttpBinding, stay with http and security and IIS will manage the service’s life cycle. Also, you might want a dedicated application pool.
    2. Using Session or not is matter of design. Use Sessions if there is a state to maintain between the calls otherwise use per call. A ping operation wouldn’t require Sessions.

    I suggest the following binding configuration along with per call:

      <wsHttpBinding>
        <binding name="DefaultSOAPBasedHTTPSBinding" maxReceivedMessageSize="400000">          
          <readerQuotas maxArrayLength="102400" />
          <security>
            <message clientCredentialType="Username"/>
          </security>
        </binding>
      </wsHttpBinding>
    

    Hope it helps!

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

Sidebar

Related Questions

Here is the situation: 1) I have two toplevel windows, A and B 2)
Situation: I have website which calls WCF Service and i'm trying to understand it..
Situation: I have an application that uses http connections extensively (stream ripping app) and
Here’s the situation: We have a 3rd party application that intermittently displays an error
Is it possible/feasible/reasonable to use HAProxy to load-balance three SQL Server 2008 database servers?
I have been developing a quite large application, and I uploaded it to my
We're developing an ASP.NET Website on a 64-bit machine with VS 2008, and deploying
I'm hesitant to ask this question because of the vagueness of the situation, but
RE: Jquery: change event to input file on IE Any alternative to jQuery change()
I am looking at getting a continuous integration/continuous deployment environment set up for my

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.