<behavior> of <endpointBehaviors>

The behavior element contains a collection of settings for the behavior of an endpoint. Each behavior is indexed by its name. Endpoints can link to each behavior through this name.

Schema Hierarchy

<system.serviceModel>
  <behaviors>
    <endpointBehaviors>
      <behavior> of <endpointBehaviors>

Syntax

<system.ServiceModel>
  <behaviors>
    <endpointBehaviors>
       <behavior name="String" />
    </endpointBehaviors>
  </behaviors>
</system.ServiceModel>

Attributes and Elements

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

Attributes

Attribute Description

name

A unique string that contains the configuration name of the behavior. This value is a user-defined string that must be unique, since it acts as the identification string for the element.

Child Elements

Element Description

<clientCredentials>

Specifies the credentials used to authenticate the client to a service.

<callbackDebug>

Specifies service debugging for a Windows Communication Foundation (WCF) callback object.

<callbackTimeouts>

Specifies the timeout for the client callback.

<clientVia>

Specifies the route a message should take.

dataContractSerializer

Contains configuration data for the DataContractSerializer.

<enableWebScript>

Enables the endpoint behavior that makes it possible to consume the service from ASP.NET AJAX web pages. The behavior should only be used in conjunction with either the <webHttpBinding> standard binding, or the <webMessageEncoding> binding element.

<synchronousReceive> element

Specifies run-time behavior for receiving messages in either a service or client application. It does not have any attributes or child elements.

<transactedBatching>

Specifies whether transaction batching is supported for receive operations.

<webHttp>

Specifies the WebHttpBehavior on an endpoint through configuration. This behavior, when used in conjunction with the <webHttpBinding> standard binding, enables the Web programming model for a WCF service.

Parent Elements

Element Description

<endpointBehaviors>

A collection of endpoint behavior elements.


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