Create a SOAP message with Assertion Saml2 in Header with c# code
问题 I have a Government Web Server with an exposed service that I need to consume. So far, for other services of the same Web Server I have done this: I created a CustomBinding, which creates a Header with only the Security tag. This is the code: var sec = new AsymmetricSecurityBindingElement( new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode.Never), new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode