CoreWCF / CoreWCF/samples

Binding Name Query in CoreWCF

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
50
Forks
22
PR merge metrics
No merged PRs in 30d

Description

**Which sample is the bug for**

**Describe the bug**
I'm currently transitioning from ASMX to CoreWCF and noticed a difference in the binding naming convention. In ASMX, we've been able to name our bindings simply, for example: "GetAppReportSoap". However, in CoreWCF, it seems that the binding name also requires the contract name, resulting in something like: "GetAppReportSoap_IGetAppReportSoap".

Could you please clarify if this is the expected behavior, or if there is a way to use simple binding names in CoreWCF similar to what we had in ASMX?

**To Reproduce**
Steps to reproduce the behavior:
1. Build application'
2. Copy the WSDL service.
3. Check the WSDL service URL in the Soap application.
4. See the change in the image below.

**Expected behavior**
The expected behavior is shown in green, whereas the actual behavior is highlighted in red below the image.
![image](https://github.com/user-attachments/assets/ccfaabfa-937c-4e9a-bb50-9b1d3d288546)
**Repo environment (please complete the following information):**
- OS: Windows
- .NET Version 6.0
- IDE or command line builds

**Additional context**

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.