<client>
The client element defines a list of endpoints that a client can connect to.
<system.serviceModel>
<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 |
---|---|
Contains a collection of endpoint elements, that specify the endpoints that this client can connect to. |
|
Contains settings for processing metadata. |
Parent Elements
Element | Description |
---|---|
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
Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.