- Transport – this defines what protocol is being used like HTTP, Named Pipes, TCP, and MSMQ are some type of protocols.
- Encoding (This is Optional) – There are basically three types of encoding are available- namely: Text, Binary, or Message Transmission Optimization Mechanism (MTOM). MTOM is an interoperable message format that allows the effective transmission of attachments or large messages (greater than 64K).
- Protocol (This is also Optional) - It defines what information to be used in the binding such as Security, transaction or reliable messaging capability etc.
Basic Web service communication. No security by default
Web services with WS-* support. Supports transactions
Web services with duplex contract and transaction support
Web services with federated security. Supports transactions
Communication directly with MSMQ applications. Supports transactions
Communication between WCF applications by using queuing. Supports transactions
Communication between WCF applications on same computer. Supports duplex contracts and transactions
Communication between computers across peer-to-peer services. Supports duplex contracts
Communication between WCF applications across computers. Supports duplex contracts and transactions
<serviceDebug includeExceptionDetailInFaults="true" />
Types of Contracts:
Service contracts describe the operation that service can provide. For E.g., a Service provide to know the temperature of the city based on the zip code, this service is called as Service contract. It will be created using Service and Operational Contract attribute.
Attribute that implement these contracts are: