Answered by:
What is EndPoint in WCF ?

Question
-
User139442114 posted
Hi,
I am new to WCF. can you please tell what is Endpoint and How it would be and where should configure in WCF ?
can you please share your idea based on your work experience ?
i appreciate your help if you give some example also as i am in bottom of the step.
Thanks in advance.
Friday, May 3, 2013 10:46 AM
Answers
-
User-183374066 posted
How is it possible one service can have multiple ?This is possible.
Dear we need multiple end points for one service because we from service to
- Expose more than one type of binding
- Exponse more than one contract on the same binding
- Expose same binding and contract on different addresses.
There is plenty of help available on msdn
- http://msdn.microsoft.com/en-us/library/ms751515.aspx see left menu for more readings
- http://msdn.microsoft.com/en-us/library/aa395210.aspx
- http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/configuring-multiple-end-points-for-wcf-service/
Regards
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, May 3, 2013 12:28 PM
All replies
-
User-183374066 posted
All communication with a Windows Communication Foundation (WCF) service occurs through the endpoints of the service. Endpoints provide clients access to the functionality offered by a WCF service.
Each endpoint consists of four properties:
- An address that indicates where the endpoint can be found.
- A binding that specifies how a client can communicate with the endpoint.
- A contract that identifies the operations available.
- A set of behaviors that specify local implementation details of the endpoint.
You have to define end point in web.config like e.g.
<system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IPairArihmeticService"/> </basicHttpBinding> </bindings> <client> <endpoint address="http://localhost:1062/WcfTestWebSite/PairArihmeticService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IPairArihmeticService" contract="PairServiceReference.IPairArihmeticService" name="BasicHttpBinding_IPairArihmeticService"/> </client> </system.serviceModel>
Some tutorials that will clear your understanding
- http://msdn.microsoft.com/en-us/library/ms733107.aspx See left menu for address, binding, contract and more...
- http://www.codeproject.com/Articles/406096/A-beginners-tutorial-for-understanding-Windows
- http://msdn.microsoft.com/en-us/library/windows/desktop/bb756928.aspx
- http://wcftutorial.net/
Friday, May 3, 2013 10:57 AM - An address that indicates where the endpoint can be found.
-
User139442114 posted
Thanks Naseer...
I read one article .they mentioned that one WCF service can have multiple endpoint ...
How is it possible one service can have multiple ?
can you please explain in technical point of view ?
Thanks
Friday, May 3, 2013 12:10 PM -
User-183374066 posted
How is it possible one service can have multiple ?This is possible.
Dear we need multiple end points for one service because we from service to
- Expose more than one type of binding
- Exponse more than one contract on the same binding
- Expose same binding and contract on different addresses.
There is plenty of help available on msdn
- http://msdn.microsoft.com/en-us/library/ms751515.aspx see left menu for more readings
- http://msdn.microsoft.com/en-us/library/aa395210.aspx
- http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/configuring-multiple-end-points-for-wcf-service/
Regards
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, May 3, 2013 12:28 PM