dotnet / dotnet/wcf

Warning: Endpoint 'CustomBinding_IBrokerServiceExternalEC2' at address 'https://tt02.altinn.no/ServiceEngineExternal/BrokerServiceExternalEC2.svc' contains one or more bindings not compatible with .Net Core apps, skipping...

Open
#4,566 0 comments 0 reactions 1 assignee Claimed by @imcarolwang View on GitHub
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

Hello, I am trying to consume a WCF service in .NET 5.0, using dotnet-svcutil to generate .cs client class. When trying to run the tool, I get the following output in a terminal window:

![image](https://user-images.githubusercontent.com/46325452/111378262-e1bc4200-86a1-11eb-943c-d7f36bd7f414.png)

Output text:

C:\Users\\Documents\ConsoleApp5>dotnet-svcutil https://tt02.altinn.no/ServiceEngineExternal/BrokerServiceExternalEC2.svc
Microsoft (R) WCF Service Model Proxy Generation Tool for .Net Core platform
[Microsoft.Tools.ServiceModel.Svcutil, Version 2.0.3-preview1.20574.1]
Copyright (c) Microsoft Corporation. All rights reserved.

This tool collects information about how it is used in order to improve the tool. This functionality can be disabled by setting the environment variable "DOTNET_SVCUTIL_TELEMETRY_OPTOUT" to 1.

Resolving project references ...
Attempting to download metadata from 'https://tt02.altinn.no/ServiceEngineExternal/BrokerServiceExternalEC2.svc' using WS-Metadata Exchange and HttpGet.
Warning: The following Policy Assertions were not Imported:
XPath://wsdl:definitions[@targetNamespace='http://www.altinn.no/services/ServiceEngine/Broker/2015/06']/wsdl:binding[@name='CustomBinding_IBrokerServiceExternalEC2']
Assertions:
..
Warning: Unsupported binding element type: 'System.ServiceModel.Channels.UnrecognizedAssertionsBindingElement'.
Warning: Unsupported transport security token endorsing parameters type: 'System.ServiceModel.Security.Tokens.X509SecurityTokenParameters'. It must be 'System.ServiceModel.Security.Tokens.SecureConversationSecurityTokenParameters'.
Warning: Transport Security with DetectReplays enabled is not supported.
Warning: Endpoint 'CustomBinding_IBrokerServiceExternalEC2' at address 'https://tt02.altinn.no/ServiceEngineExternal/BrokerServiceExternalEC2.svc' contains one or more bindings not compatible with .Net Core apps, skipping...
Warning: No endpoints compatible with .Net Core apps were found.
Generating files...
C:\Users\\Documents\ConsoleApp5\ServiceReference\Reference.cs

Not sure, but there seems to be a problem with CustomBinding. Does anyone know why this happens, and how I can fix it. Any help is greatly appreciated!

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.