Services are defined in the services section of the configuration file. An assembly can contain any number of services. Each service has its own service configuration section. This section and its content define the service contract, behavior, and endpoints of the particular service.
The behaviorConfiguration element is also optional. It identifies the behavior the service uses. The behavior specified in this attribute must link to a behavior in scope in the same configuration file.
Each service exposes one or more endpoints, which has its own address and binding. All bindings used within the configuration file must be defined in the scope of the file. Binding are linked to endpoints through the combination of the attributes name and bindingConfiguration. The name attribute describes the section the binding is defined in. The bindingConfiguration attribute defines which configuration within the binding section is used. A binding section can define several configurations.