dotnet / dotnet/wcf

Generating client proxy code using Add WCF Service Reference is missing an endpoint

Open
#5,341 1 comment 0 reactions 1 assignee Claimed by @mconnew View on GitHub
triaged
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.