Skip to content

lennykean/WcfCoreMtomEncoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WcfCoreMtomEncoder

Currently, .NET Core WCF has no build-in support MTOM.

The MtomMessageEncoderBindingElement allows .NET Core applications to communicate with WCF endpoints which support MTOM encoding.

Note: This is not a complete implementation of MTOM. It is meant as a workaround for calling existing MTOM encoded SOAP services. It consumes MTOM encoded messages, but does not perform MTOMEncoding on outbound messages. However this should be sufficent for interoperating with existing services.

Build status NuGet

Installation

.NET CLI

> dotnet add package WcfCoreMtomEncoder

Package Manager

PM> Install-Package WcfCoreMtomEncoder

Usage

The MtomMessageEncoderBindingElement is meant to wrap another message encoder, usually TextMessageEncodingBindingElement.

Creating a custom binding

var encoding = new MtomMessageEncoderBindingElement(new TextMessageEncodingBindingElement());
var transport = new HttpTransportBindingElement();
var customBinding = new CustomBinding(encoding, transport);

var client = new MtomEnabledServiceClient(customBinding);

About

MTOM message encoder for .NET Core WCF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages