dotnet / dotnet/wcf

The '/' character, hexadecimal value 0x2F, cannot be included in a name.

Open
#5,665 0 comments 1 reaction 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

**Describe the bug**
When trying to generate code for a WCF service in a .Net 8.0 project, either using VS2022 or the dotnet-svcutil I get the following error:

```
Warning: Cannot import wsdl:portType
Detail: The '/' character, hexadecimal value 0x2F, cannot be included in a name. (Parameter 'name')
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://xmlns.oracle.com/Enterprise/FSCM/service/pcProject/Activities.1']/wsdl:portType[@name='pcProject/Activities_PortType']
Warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://xmlns.oracle.com/Enterprise/FSCM/service/pcProject/Activities.1']/wsdl:portType[@name='pcProject/Activities_PortType']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://xmlns.oracle.com/Enterprise/FSCM/service/pcProject/Activities.1']/wsdl:binding[@name='pcProject/Activities_Binding']
Warning: Cannot import wsdl:port
Detail:
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://xmlns.oracle.com/Enterprise/FSCM/service/pcProject/Activities.1']/wsdl:service[@name='pcProject/Activities']/wsdl:port[@name='pcProject/Activities_Port']
Warning: No endpoints compatible with .Net Core apps were found.
```

**To Reproduce**
Steps to reproduce the behavior:
1. Unfortunately the WSDL URL is located internally.

**Expected behavior**
Should be able to generate the code.

**Additional context**
I do not have any control over the WSDL. If I create a traditional class library project (not the new project format) and target .Net Framework 4.7.2 I am able to successfully generate the code in VS2022.

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.