<client>

 

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

<system.ServiceModel>
<client>

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

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

Attributes

None

Child Elements

ElementDescription
<endpoint>Contains a collection of endpoint elements, that specify the endpoints that this client can connect to.
<metadata>Contains settings for processing metadata.

Parent Elements

ElementDescription
<system.serviceModel>The root element of all Windows Communication Foundation (WCF) configuration elements.

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.

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

ClientSection
MetadataElement
WCF Client Configuration
Clients

Show: