I am creating a wcf client on core. I create a binding.
var binding = new System.ServiceModel.BasicHttpsBinding();
I need to add MessageID, ReplyTo fields to the request for ws-addressing. How to do it correctly?
I tried to overwrite request - it didn't work. All examples are mostly on the usual net framework It seems there is a library microsoft.web.services2, but I do not understand how to use it.
I'm working on the same requirement, I've found the way to modify the header is work with the
OperationContextScope
and work withOperationContext.Current.OutgoingMessageHeaders
and change the properties.