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 ?
Asked
Active
Viewed 41 times
0

Rob
- 4,927
- 12
- 49
- 54
-
Did you find the answer to this? – tom redfern May 08 '13 at 14:31
1 Answers
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