Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have 1 wcf service which have 4 method and we have 2 wcf client. Now we want
client 1 got only method 1 & 2 and client 1 got only method 3 & 4.

We can do this by took 2 interface and create individual proxy for both client but when we provide the end point to client that can be access all method through the endpoint.
Please help any WCF expert.
Posted
Updated 29-May-15 0:37am
v2
Comments
F-ES Sitecore 29-May-15 8:46am    
Implement authentication on your calls so clients need to provide credentials. Preventing method calls by secrecy alone is not a robust solution.

1 solution

You could implement multiple endpoints to provide to client

Otherwise you could check the header of message using MessageContract
An example for second option:
http://dotnetmentors.com/tutorial-on-wcf-message-contract-by-example.aspx[^]
 
Share this answer
 
v2
Comments
jigar001 3-Jun-15 8:05am    
Is this possible with single endpoint ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900