Which binding should I choose to enable sessions following is my service interface:
[ServiceContract(SessionMode=SessionMode.Required)]
public interface IAkessaAbstractionService
{
[OperationContract(IsInitiating=true)]
LoginDTO Login(string Username, byte[] Password, bool ForcefulLogin);
[OperationContract(IsInitiating=false)]
string[] names();
}
when I use WSHttpBinding() as basicHttpBinding doesn’t support sessions, I get the following error:
Exception during finishing channel acceptance.
System.NotSupportedException: Channel type System.ServiceModel.Channels.IReplySessionChannel is not supported
at etc etc….
and when I use WSDualHttpBinding() it throws the following error:
System.NotImplementedException: The requested feature is not implemented.
at System.ServiceModel.WSDualHttpBinding.CreateBindingElements () [0x00000] in :0 at System.ServiceModel.Channels.CustomBinding..ctor (System.ServiceModel.Channels.Binding binding) [0x00000] in :0
I am using mono version 2.10.2.
No support for WCF sessions in mono as of now.