question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Mtom support in WCF runtime

See original GitHub issue

I am getting the following error when using the Visual Studio WCF Connected Service extension for Visual Studio 2017:

Scaffolding Code ...
Error:Warning: The following Policy Assertions were not Imported:   XPath://wsdl:definitions[@targetNamespace='http://imaging.oracle/']/wsdl:binding[@name='DocumentContentServicePortBinding']
  Assertions:
    <ns1:OptimizedMimeSerialization xmlns:ns1='http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization'>..</ns1:OptimizedMimeSerialization>
Warning: Unsupported binding element type: 'System.ServiceModel.Channels.UnrecognizedAssertionsBindingElement'.
Warning: Unsupported message encoding element type: 'System.ServiceModel.Channels.MtomMessageEncodingBindingElement'. It must be one of the following types: 'System.ServiceModel.Channels.BinaryMessageEncodingBindingElement', 'System.ServiceModel.Channels.TextMessageEncodingBindingElement.'
Warning: Endpoint 'DocumentContentServicePort' at address 'http://localhost/imaging/ws/DocumentContentService' contains one or more bindings not compatible with .Net Core apps, skipping...
Error: No endpoints compatible with .Net Core apps were found.
Failed to generate service reference.

The WSDL/XSD file causing the issue: DocumentContentService.xsd.txt DocumentContentService.wsdl.txt

dotnet --info

.NET Command Line Tools (1.0.0)

Product Information:
 Version:            1.0.0
 Commit SHA-1 hash:  e53429feb4

Runtime Environment:
 OS Name:     Windows
 OS Version:  6.1.7601
 OS Platform: Windows
 RID:         win7-x64
 Base Path:   C:\Program Files\dotnet\sdk\1.0.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:103
  • Comments:104 (17 by maintainers)

github_iconTop GitHub Comments

64reactions
zhenlancommented, Sep 28, 2017

Not in a plan at this point. Please upvote if this is important. It will be helpful for future planning.

25reactions
lalenzoscommented, Sep 5, 2018

Are there any news regarding ASP.NET Core and SOAP MTOM?

Read more comments on GitHub >

github_iconTop Results From Across the Web

MTOM Encoding - WCF
The MTOM sample demonstrates the use of the Message Transmission Optimization Mechanism (MTOM) message encoding with a WSHttpBinding. MTOM is a ...
Read more >
How to create WCF service that accepts MTOM encoded ...
I would declare a method like [OperationContract, WebInvoke(Method = "POST"] public Message ReadPost(Stream stream) {......} and use a MultiPart ...
Read more >
WCF Service using MTOM in .NET FW 4
1. Open the Visual Studio 2010 and create a WCF service · 2. The service contract in the project looks as follows ·...
Read more >
Using MTOM with WCF - ASP.NET Community Blogs
The method that is sending MTOM content can only receive or return classes that have the [MessageContract] attribute, not [DataContract], or " ...
Read more >
Part 35 Sending large messages in WCF using MTOM
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2014/02/part-35-sending-large-messages-in-wcf_23.html ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found