In WCF, the Service corresponds to address 1 one by one. The address tells us two information about the connection to the service: Location 2 and transmission protocol (transmission mode ).
WCF 1.0 supports five transmission modes:
L
HTTP
L
TCP
L
Peer
Network
L
IPC
L
MSMQ
Valid WCF addresses are strings in the format of [transmission mode]: // [location] [: Port] [/service name. For example:
L
Http: // localhost: 8001
L
Http: // localhost: 8001/myservice
L
Net. TCP: // localhost: 8002/myservice
L
Net. Pipe: // localhost/mypipe
L
Net. MSMQ: // localhost/private/myservice
TCP
Net. TCP indicates that data is transmitted over TCP. If no port is specified, port 808 is used by default.
HTTP
You can use HTTP or HTTPS to indicate that the HTTP protocol is used. The default port number is 80. In the example above, the two HTTP addresses can use the same port number.
IPC
Use Net. pipe to represent the IPC address. Use IPC
In Windows, the named pipe performs data transmission. In WCF, the named pipe cannot be called across machines.
MSMQ
Use Net. the MSMQ identifier. net. when MSMQ is used to transmit data, you must specify the name of the MSMQ queue. When operating on a private queue, you must specify the queue type (private)
Peer Network
Specify a P2P transmission using net. P2P.
1. Address
2.
Location