Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
StevenRasmussen opened this issue Oct 21, 2024 · 0 comments
Labels

Comments

@StevenRasmussen
Copy link

StevenRasmussen commented Oct 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants