AddressingNone is not supported
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);
This is easy to add, but we need to make sure we have tests for this. We have quite a few bindings now and so we need to add tests for each binding that supports AddressingVersion.None. The bulk of the work here is adding test coverage.
@mconnew Should this issue be marked as resolved? It looks like a duplicate of issue #477 which was fixed by PR #500