CoreWCF
CoreWCF copied to clipboard
[Bug]: Soap11WSAddressingAugust2004 failing
Duplicate ?
- [X] I have searched issues/discussions and did not find other issues/discussions reporting this bug.
Product version
1.5.1
Describe expected behavior
SOAP message should reach endpoint
Describe actual behavior
Internal error in CoreWCF while processing SOAP request
Which binding
CustomBinding
security
None
Which .NET version
.NET 6
Which os platform
Windows
Code snippet used to reproduce the issue
CustomBinding customBindingSoap11 = new CustomBinding(new BasicHttpBinding());
var encoding = customBindingSoap11.Elements.Find<TextMessageEncodingBindingElement>();
encoding.MessageVersion = MessageVersion.Soap11WSAddressingAugust2004;
...
// Add the Service
builder.AddService<SomeService>(serviceOptions =>
{
})
// Add a BasicHttpBinding endpoint
.AddServiceEndpoint<SomeService, ISomeService>(customBindingSoap11, "/someendpoint.asmx", endpoint =>
{
})
Stacktrace if any
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HMVB55JE925V", Request id "0HMVB55JE925V:00000002": An unhandled exception was thrown by the application.
System.ObjectDisposedException: Message is closed.
at CoreWCF.Channels.BufferedMessage.get_Properties()
at CoreWCF.Channels.AspNetCoreReplyChannel.HandleRequest(HttpContext context)
at CoreWCF.Channels.RequestDelegateHandler.HandleRequest(HttpContext context)
at CoreWCF.Channels.ServiceModelHttpMiddleware.InvokeAsync(HttpContext context)
at CoreWCF.Channels.MetadataMiddleware.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)