Generating client proxy code using Add WCF Service Reference is missing an endpoint
- Dominant language
- C#
- Stars
- 1.8k
- Forks
- 576
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
Generating client proxy code using Visual Studio (Add WCF Service Reference) from service WSDL is missing an endpoint.
Sample code: [WCF Sample MessageEncoder](https://github.com/dotnet/samples/tree/main/framework/wcf/Extensibility/MessageEncoder/Text/CS)
**To Reproduce**
1. Clone the sample code.
2. Enable service metadata behavior in Web.config: ``
3. Build the service (it will be published to IIS) and generate client code using Add Service Reference from service WSDL `http://localhost/servicemodelsamples/service.svc?wsdl`.
**Expected behavior**
The generated client proxy should have two endpoints, default and secure endpoints, but only the default endpoint is generated. The service WSDL looks good, but the generated code is missing secure endpoint.
Contributor guide
Assessment
This issue has not been assessed yet.