Archive

Posts Tagged ‘headers’

Configuring a client endpoint

The followings are related (useful) articles (in addition to my notes) about configuring a WCF Client application:

MSDN Article 1: Client Configuration

Highlights:

The following shows the example in the MSDN article excluding all attributes and values. This configuration shows the overall structure of the xml elements.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.serviceModel>
        <client>
          <endpoint >
            <metadata></metadata>
            <identity></identity>
            <headers></headers>
          </endpoint>
        </client>

    <bindings>
      <wsHttpBinding>
        <binding>
          <security></security>
        </binding>
     </wsHttpBinding>
    </bindings>

//The behavior section references by the behaviorConfiguration endpoint attribute.
        <behaviors>
            <endpointBehaviors>
                <behavior></behavior>
            </endpointBehaviors>
        </behaviors>

    </system.serviceModel>
</configuration

MSDN Article 2. Specifying an Endpoint Address

  • Each endpoint has a address associated to it. There are two ways to specify the address: In code and in the configuration file.
Categories: WCF Tags: , , , ,