Wednesday, 21 May 2014

How to find the available endpoints for a WCF service

    How to find the available endpoints for a WCF service

 

1.       In Solution Explorer, right-click the app.config file for the project that contains the service reference and then click Open. The file will appear in the Code Editor.

2.       Search for the <Client> tag in the file.

3.       Search underneath the <Client> tag for a tag that starts with <Endpoint>.
If the service reference provides multiple endpoints, there will be two or more <Endpoint tags.

4.       Inside the <EndPoint> tag you will find a name="SomeService" parameter (where SomeService represents an endpoint name). This is the name for the endpoint that can be passed to the endpointConfigurationName As String overload of a constructor for a service reference.


No comments:

Post a Comment