<client>

The client element defines a list of endpoints that a client can connect to.

Schema Hierarchy

<system.serviceModel>
  <client>

Syntax

<system.serviceModel>
    <client>
        <endpoint>
        </endpoint>
                <metadata>
        </metadata>
    </client>
</system.serviceModel>

Attributes and Elements

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

Attributes

None

Child Elements

Element Description

<endpoint> of <client>

Contains a collection of endpoint elements, that specify the endpoints that this client can connect to.

<metadata>

Contains settings for processing metadata.

Parent Elements

Element Description

<system.serviceModel>

The root element of all Windows Communication Foundation (WCF) configuration elements.

Remarks

The client section defines a list of endpoints that a client can connect to. Each endpoint listed in the client section defines its own binding, behavior, and contract. It is uniquely identified by the combination of the name and contract attributes. The client code specifies the name to connect to an endpoint for the service that the client implements. If the name attribute is omitted, the endpoint acts as the default endpoint for the contract it implements.

In addition, this section also specifies settings for processing metadata.

Example

<client>
    <endpoint address="/HelloWorld/"
              bindingConfiguration="usingDefaults"
              name="MyBinding"
              binding="customBinding"
              contract="HelloWorld">
    <addressProperties actingAs="https://www.microsoft.com/TestActor"
             identityData="BasicReadWrite" identityType="Spn" isAddressPrivate="false">
    </endpoint>
</client>

See Also

Reference

ClientSection
MetadataElement

Other Resources

WCF Client Configuration
Clients


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