c# 3.0 - WCF OperationContract for both duplex and non-duplex endpoints -


i trying host wcf service supports wshttpbinding , basichttpbinding. reason desktop clients need duplex , windows mobile clients don't.

lets have 3 operationcontracts, 2 of them need duplex , 1 of them not.

so possible expose 2 operationcontract wshttpbinding , last 1 basichttpbinding?

because when tried error :

contract requires session, binding 'basichttpbinding' doesn't support or isn't configured support it.

is there way make work? or have make separate wcf services each binding?

thanks advice , help.

every endpoint exposes all operations service it's representing.

you cannot expose "basic" endpoint 1 method of service1, , duplex endpoint 2 others.

if need able kind of flexibility, need create 2 separate service implementations - 1 handles duplex operations, 1 handles others.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -