Bagikan melalui


<security> of <webHttpBinding>

Specifies the security requirements for an endpoint configured with a <wsHttpBinding>.

Schema Hierarchy

<system.serviceModel>
  <bindings>
    <webHttpBinding>
      <binding>
        <security> of <webHttpBinding>

Syntax

<system.ServiceModel>
    <bindings>
        <webHttpBinding>
            <binding name = "string">
              <security mode="None/Transport/TransportCredentialOnly">
                                    <transport clientCredentialType = 
                                     "Basic/Certificate/Digest/None/Ntlm/Windows"
                                     proxyCredentialType="Basic/Digest/None/Ntlm/Windows"
                                     realm="string" />
              </security>
        </webHttpBinding>
    </bindings>
</system.ServiceModel>

Attributes and Elements

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

Attributes

Attribute Description

mode

Specifies whether transport-level security or no security is used by an endpoint. The default is None. This attribute is of type WebHttpSecurityMode.

Child Elements

Element Description

<transport> of <webHttpBinding>

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

Parent Elements

Element Description

<webHttpBinding>

A binding element that is used to configure endpoints for Windows Communication Foundation (WCF) Web services that respond to HTTP requests instead of SOAP messages.

See Also

Reference

WebHttpBindingElement
WSHttpSecurityElement
Security
Security
WebHttpSecurity

Concepts

<binding>

Other Resources

Securing Services and Clients
Selecting a Credential Type
Windows Communication Foundation Bindings
Configuring System-Provided Bindings
Using Bindings to Configure Services and Clients
Web Programming Model


© 2007 Microsoft Corporation. All rights reserved.
Last Published: 2010-01-05