CoreWCF icon indicating copy to clipboard operation
CoreWCF copied to clipboard

AddressingNone is not supported

Open shiiuand opened this issue 4 years ago • 2 comments

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);

shiiuand avatar Sep 30 '21 06:09 shiiuand

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 avatar Oct 14 '21 16:10 mconnew

@mconnew Should this issue be marked as resolved? It looks like a duplicate of issue #477 which was fixed by PR #500

jonlouie avatar Apr 13 '22 07:04 jonlouie