Last post Aug 04, 2014 11:09 AM by Siva Krishna Macha
Aug 04, 2014 08:09 AM|nitinsomal|LINK
I have WCF service that contain two operation contract namely opt1 and opt2
And i also have two Endpoint in my service,
(1) I want from my first endpoint i can access only opt1
(2) And From my Second endpoint i can access only opt2
Aug 04, 2014 11:09 AM|Siva Krishna Macha|LINK
Fortunately WCF has this feature as it supports OOPs concept.
Just use single service (as you want this to be) but implement "multiple" contracts. In each contract, write the specific method you want to expose. For each endpoint, expose the required contract.
A detailed explanation in this article:
Just as a side note, if you want SOAP and REST side by side: (You might feel this also interesting):