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

Cannot import wsdl:binding in .NET Core 2 console app #2271

Closed
Rodske opened this issue Sep 6, 2017 · 3 comments
Closed

Cannot import wsdl:binding in .NET Core 2 console app #2271

Rodske opened this issue Sep 6, 2017 · 3 comments
Assignees
Labels
tooling An issues related to any tool shipped from this repo.
Milestone

Comments

@Rodske
Copy link

Rodske commented Sep 6, 2017

I'm trying to use a WCF service in a .NET Core 2 console app. Any ideas on how to resolve the following....? The url is https://authentication.business.gov.au/R3.0/vanguard/S007v1.2/Service.svc

Warning: Cannot import wsdl:binding
Detail: An exception was thrown in a call to a policy import extension.
Extension: System.ServiceModel.Channels.SecurityBindingElementImporter
Error: The method or operation is not implemented.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice']/wsdl:binding[@name='S007SecurityTokenServiceEndpoint']
Warning: Cannot import wsdl:port
Detail:
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice']/wsdl:service[@name='SecurityTokenService']/wsdl:port[@name='S007SecurityTokenServiceEndpoint']
Error:Error: No endpoints compatible with .Net Core apps were found.

Error:An unknown error occurred while invoking the service metadata component.
Failed to generate service reference.

@hongdai
Copy link
Contributor

hongdai commented Sep 6, 2017

@Rodske This is because the service uses TransportWithMessageCredential binding and Dotnet core does not currently support Message security.

Thanks,
Hong Dai

@hongdai hongdai added the tooling An issues related to any tool shipped from this repo. label Sep 6, 2017
@Rodske
Copy link
Author

Rodske commented Sep 7, 2017

Are there any workarounds I could do? Is there an associated release number for when .NET Core might support this on the roadmap?

@hongdai
Copy link
Contributor

hongdai commented Sep 7, 2017

The only workaround at this point is to change your service to use transport security and not message security. This is might not be an option if you do not own the service.

WCF is not able to support message security currently is because underlying key functionalities (mostly in System.IdentityModel) is not available on .NET Core. FYI, this is tracked in #3, #4, #8.

@zhenlan zhenlan added this to the S123 milestone Sep 7, 2017
@zhenlan zhenlan closed this as completed Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling An issues related to any tool shipped from this repo.
Projects
None yet
Development

No branches or pull requests

3 participants