Brainchild
Brainchild

Reputation: 1874

Is it possible to define multiple bindings in the same service

I have a WCF Service. Is it possible to define a WCF service to have mulitple bindings

like

Method1 - WSHttpbinding Method2 - BasicHttpbinding Method3 - NETTcpBinding

Thanks.

Upvotes: 0

Views: 167

Answers (1)

Eric Eijkelenboom
Eric Eijkelenboom

Reputation: 7021

No, you can't set a binding on method level.

What you can do: expose the entire service on multiple endpoints, where each endpoint is configured with a different binding (WsHttp, BasicHttp, Tcp, etc).

Upvotes: 1

Related Questions