简体   繁体   English

绑定webHttpBinding不支持Session?

[英]binding webHttpBinding not support Session?

Is Wcf Rest 'WebHttpBinding' Support [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)] ? Wcf Rest'WebHttpBinding'是否支持[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]

I am getting null response of 我得到的响应为空

OperationContext.Current.SessionId;

ServiceContract属性更改为:

[ServiceContract(SessionMode = SessionMode.Required)]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Silverlight是否支持WebHttpBinding? - Does Silverlight support WebHttpBinding? 将wsHttpBinding绑定更改为webHttpBinding - Change wsHttpBinding binding to webHttpBinding RESTful服务中webHttpBinding的绑定和配置? - binding and configuration for webHttpBinding in RESTful service? WCF webHttpBinding输出参数支持 - WCF webHttpBinding out parameters support 绑定不能在“双模式”下工作(webHttpBinding和basicHttpBinding) - Binding not working in “dual mode” (webHttpBinding and basicHttpBinding) 从WebHttpBinding访问WCF服务中的会话 - Access Session in WCF service from WebHttpBinding 添加https绑定后,IIS中的静态WCF(webhttpbinding)中断 - Restful WCF (webhttpbinding) in IIS breaks after adding https binding ('IntegratedWindowsAuthentication')不允许在绑定'WebHttpBinding'('Anonymous')上配置的配置 - ('IntegratedWindowsAuthentication') do not allow those configured on the binding 'WebHttpBinding' ('Anonymous') WebHttpBinding绑定中使用的默认标头内容类型值 - Default header content-type value used in the WebHttpBinding binding Contract需要Session,但是绑定'WSHttpBinding'不支持它。 带有TransportWithMessageCredential的404 - Contract requires Session, but Binding 'WSHttpBinding' doesn't support it; 404 with TransportWithMessageCredential
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM