how to enable WCF Session with wsHttpBidning with Transport only Security

后端 未结 3 757
旧巷少年郎
旧巷少年郎 2020-12-03 09:04

I have a WCF Service currently deployed with basicHttpBindings and SSL enabled. But now i need to enable wcf sessions(not asp sessions) so i moved service to wsHttpBidnings

相关标签:
3条回答
  • 2020-12-03 09:43

    well make <security mode="None"> then the "Https expected instead of HTTP error will be fixed.

    0 讨论(0)
  • 2020-12-03 09:44

    go to your IIS host and Right Click on your Application and choose MangeApplication and Advanced Settings and in Enabled Protocols add "wsHttpBinding".

    0 讨论(0)
  • 2020-12-03 09:54

    If you want "sessions" with wsHttpBinding, you have to use either reliable messaging, or the security sessions.

    To enable sessions on wsHttpBinding, you need reliable messaging, and for that, you need to change the setting for reliable session (the tag that looks like this <reliableSession/>) to be enabled - so your new config would look like this:

    <wsHttpBinding>
        <binding name="wsHttpBinding">
          <readerQuotas maxStringContentLength="10240" />
          <reliableSession enabled="true" />
          <security mode="Transport">
            <transport clientCredentialType="None">
              <extendedProtectionPolicy policyEnforcement="Never" />
            </transport>
          </security>
        </binding>
      </wsHttpBinding>
    
    0 讨论(0)
提交回复
热议问题