CoreWCF / CoreWCF/CoreWCF

AddressingNone is not supported

Open
#463 2 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted Triaged
Dominant language
C#
Stars
1.8k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

When I try to make a soap 1.2 service with custom binding below, it comes to an exception "Addressing Version 'AddressingNone (http://schemas.microsoft.com/ws/2005/05/addressing/none)' is not supported. (Parameter 'addressingVersion')".
Will this be supported?
Or how do I make a soap 1.2 http binding service without WS-addressing?

var soap12HttpBinding = new CustomBinding();
var textBindingElement = new TextMessageEncodingBindingElement
{
MessageVersion = MessageVersion.CreateVersion(EnvelopeVersion.Soap12, AddressingVersion.None)
};
soap12HttpBinding.Elements.Add(textBindingElement);
var httpBindingElement = new HttpTransportBindingElement
{
//[Note]:AllowCookies not support
//httpBindingElement.AllowCookies = true;
MaxBufferSize = int.MaxValue,
MaxReceivedMessageSize = int.MaxValue
};
soap12HttpBinding.Elements.Add(httpBindingElement);

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.