This topic has not yet been rated - Rate this topic

<client>

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


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

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.

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>




Build Date:

2012-08-02
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.