Share via


<security> of <wsHttpBinding>

Represents the security capabilities of the <wsHttpBinding>.

<system.serviceModel>

  <bindings>

    <wsHttpBinding>

      <binding>

        <security> of <wsHttpBinding>

                                    
                                    <system.ServiceModel>
                                
                                    
                                        <bindings>
                                
                                    
                                            <wsHttpBinding>
                                
                                    
                                                <binding name = "string">
                                
                                    
                                                  <security mode="None/Message/Transport/TransportWithMessageCredential">
                                
                                    
                                                      <transport>
                                
                                    
                                                      </transport>
                                
                                    
                                                      <message>
                                
                                    
                                                      </message>
                                
                                    
                                                  </security
                                
                                    
                                            </wsHttpBinding>
                                
                                    
                                        </bindings>
                                
                                    
                                    </system.ServiceModel>
                                
                                    
                                        
                                    
                                    
                                

Attributes and Elements

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

Attributes

Attribute Description

mode

  • Optional. Specifies the type of security that is applied. The default is Message.

  • This attribute is of type SecurityMode.

Mode Attribute

Value Description

None

Security is disabled.

Transport

Security is provided using HTTPS. The service needs to be configured with SSL certificates. The message is entirely secured using HTTPS and is authenticated by the client using the service’s SSL certificate. The client authentication is controlled through the ClientCredentials attribute. of the <transport>.

Message

Security is provided using SOAP message security. By default, the SOAP body is Encrypted and Signed. This mode offers a variety of features, such as whether the service credentials are available at the client out of band, the algorithm suite to use, and what level of protection to apply to the message body through the Security.Message property. Client authentication is performed once per session and the results of authentication are cached for the duration of the session.

TransportWithMessageCredential

In this mode, HTTPS provides integrity, confidentiality, and server authentication, and SOAP message security provides client authentication. By default, client authentication is performed once per session and the results of authentication are cached for the duration of the session.

Child Elements

Element Description

<transport>

Defines the transport security settings. This element corresponds to the HttpTransportSecurityElement type.

<message> of <wsHttpBinding>

Defines the security settings for the message. This element corresponds to the MessageSecurityOverHttpElement type.

Parent Elements


Element Description

<wsHttpBinding>

A secure binding for HTTP transport applications.

See Also

Reference

WSHttpSecurity

Other Resources

Securing Services and Clients

Footer image

Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.