79521247

Date: 2025-03-19 19:50:23
Score: 2
Natty:
Report link

I just upgraded to the latest version 1.2.1.2, and the Binding property has now been removed. Does anyone know how we're supposed to configure a custom binding now? I was using it for TransportWIthMessageCredential security, and SOAP 1.2.

wsHttpBinding.Security.Mode = SecurityMode.TransportWithMessageCredential;
wsHttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
wsHttpBinding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;

var binding = new CustomBinding(wsHttpBinding);
MessageEncodingBindingElement encodingElement = binding.Elements.Find<MessageEncodingBindingElement>();
encodingElement.MessageVersion = MessageVersion.Soap12WSAddressing10;
Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Dennis Calla