I am trying to host a WCF service that supports wshttpbindingand basichttpbinding. The reason is that for desktop clients I need duplex, and for mobile Windows clients I do not.
Suppose I have 3 OperationContracts, 2 of them need duplex, and 1 of them do not.
So, you can expose 2 OperationContract with wshttpbinding, and the latter using just basichttpbinding?
Because when I tried to get this error:
The contract requires a session, but the "BasicHttpBinding" binding does not support or configure it properly to support it.
Is there any way to make this work? Or do I need to make separate WCF services for each binding?
Thanks for the advice and help.
source
share