Last post Apr 10, 2017 08:06 AM by Chris Zhao
Apr 10, 2017 06:23 AM|arry.net|LINK
I have a WCF service, Which has 5 methods
I want to expose 3 methods using an endpoint and remaining 2 method using different endpoint.
is it possible without moving them to a different class?
Apr 10, 2017 06:32 AM|kaushalparik27|LINK
The easiest solution would be to separate them into different services for each client. Alternatively, you will require to expose all the methods (OperationContract) then do an authorization check on method level to check whether the client who is accessing
has sufficient permission to actually call it or not.
Apr 10, 2017 08:06 AM|Chris Zhao|LINK
Each endpoint consists of the following:
Address: The address uniquely identifies the endpoint and tells potential consumers of the service where it is located.
Binding: The binding specifies how to communicate with the endpoint.
Contracts: The contract outlines what functionality the endpoint exposes to the client.
Address + Binding + Contracts = Endpoint
So if you change either of Address, Contract or Binding then a new EndPoint will be created. You may have multiple EndPoints of the same service.
Creating two EndPoints for the same service
Dealing With Multiple EndPoints of a WCF Service