0

Is it possible that we can expose few methods (OperationContract) of one contract ServiceContract) to one WCF binding and rest methods (OperationContract) of same contract (ServiceContract) to other binding ?

Rob
  • 4,927
  • 12
  • 49
  • 54

1 Answers1

0

No. When you host your service you are free to define one or more endpoints for the service's operations in the configuration of the service. However, each of these operations will be exposed on all the defined endpoints. (The exception to this is that certain transport bindings do not support certain types of operations).

It sounds as if you should split your operation contracts into separate service contracts and then host two services.

tom redfern
  • 30,562
  • 14
  • 91
  • 126