wcf-sessions

WCF sessions with a wsHttpBinding and without windows security

女生的网名这么多〃 提交于 2019-12-17 10:42:40
问题 I need to create a WCF service that is hosted in IIS, uses http transport and hold state in the server’s memory. While I’m aware that stateful services aren't a good idea, this last constrain is necessary to make the service work with a legacy client. My first thought was to asp.net’s session to store the values. I activated the asp.net compatibility mode in my service, which gave me access to the HttpContext, but values that were placed in the session object were not being persisted in

Why InstanceContextMode.PerSession behave like PerCall when using wsHttpBinding?

走远了吗. 提交于 2019-12-06 23:53:52
问题 I have WCF service consumed by AJAX client using SOAP 1.2 Web.config: <endpoint address="" binding="wsHttpBinding" contract="WcfService1.IService1" bindingConfiguration="wsHttpBin"> <wsHttpBinding> <binding name="wsHttpBin"> <security mode="None"/> </binding> </wsHttpBinding> From what I have read, I have to use <security mode="None"/> since a service exposed with “wsHttpBinding” binding implements WS-Security of WS-* family of web service specifications. As the binding uses security, the

how to enable WCF Session with wsHttpBidning with Transport only Security

…衆ロ難τιáo~ 提交于 2019-11-27 14:12:46
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 but sessions are not enabled I have set [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)] But when i set SessionMode=SessionMode.Required on service contract it says Contract requires Session, but Binding 'WSHttpBinding' doesn't support it or isn't configured properly to support it. following is the definition of WSHttpBinding <wsHttpBinding> <binding name="wsHttpBinding"> <readerQuotas

WCF sessions with a wsHttpBinding and without windows security

坚强是说给别人听的谎言 提交于 2019-11-27 12:30:37
I need to create a WCF service that is hosted in IIS, uses http transport and hold state in the server’s memory. While I’m aware that stateful services aren't a good idea, this last constrain is necessary to make the service work with a legacy client. My first thought was to asp.net’s session to store the values. I activated the asp.net compatibility mode in my service, which gave me access to the HttpContext, but values that were placed in the session object were not being persisted in memory. I assume this was because the http module that handles session state was not correctly configured,

how to enable WCF Session with wsHttpBidning with Transport only Security

一曲冷凌霜 提交于 2019-11-26 16:37:49
问题 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 but sessions are not enabled I have set [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)] But when i set SessionMode=SessionMode.Required on service contract it says Contract requires Session, but Binding 'WSHttpBinding' doesn't support it or isn't configured properly to support it. following is the