Collapse the table of content
Expand the table of content

<message> of <wsHttpBinding>

Defines settings for message-level security of the <wsHttpBinding>.

   negotiateServiceCredential="Boolean" />


The following sections describe attributes, child elements, and parent elements


Attribute Description


Sets the message encryption and key-wrap algorithms. The algorithms and the key sizes are determined by the SecurityAlgorithmSuite class. These algorithms map to those specified in the Security Policy Language (WS-SecurityPolicy) specification.

The default value is Basic256.


Optional. Specifies the type of credential to be used when performing client authentication using the security mode is Message or TransportWithMessageCredentials. See the enumeration values below. The default is Windows.

This attribute is of type MessageCredentialType.


A Boolean value that determines whether the security channel establishes a secure session. A secure session establishes a Security Context Token (SCT) before exchanging the application messages. When the SCT is established, the security channel offers a ISession interface to the upper channels. For more information about using secure sessions, see How To: Create a Secure Session.

The default value is true.


Optional. A Boolean value that specifies whether the service credential is provisioned at the client out of band, or is obtained from the service to the client through a process of negotiation. Such a negotiation is a precursor to the usual message exchange.

If the clientCredentialType attribute equals to None, Username, or Certificate, setting this attribute to false implies that the service certificate is available at the client out of band and that the client needs to specify the service certificate (using the <serviceCertificate> of <serviceCredentials>) in the <serviceCredentials> service behavior. This mode is interoperable with SOAP stacks which implement WS-Trust and WS-SecureConversation.

If the ClientCredentialType attribute is set to Windows, setting this attribute to false specifies Kerberos based authentication. This means that the client and service must be part of the same Kerberos domain. This mode is interoperable with SOAP stacks which implement the Kerberos token profile (as defined at OASIS WSS TC) as well as WS-Trust and WS-SecureConversation.

When this attribute is true, it causes a .NET SOAP negotiation that tunnels SPNego exchange over SOAP messages.

The default is true.

Child Elements


Parent Elements

Element Description

<security> of <wsHttpBinding>

Defines the security settings for a <wsHttpBinding>.

Community Additions

© 2016 Microsoft